Regular Expressions 101

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^(.+)\.html(.*)$
/

Description

I used in Nginx to rewrite the location from http://example.com/about.html to http://example.com/about

Submitted by Vijay Amirtha Raj J - a year ago