Welcome! Log In Create A New Profile

Advanced

Regex 'bounds'

Posted by UKenGB 
Regex 'bounds'
May 26, 2021 01:51PM
Using nginx on an OpenMediaVault (debian) server and trying to set up a Location with regex match and wanted to match 3 actual characters. I should (certainly in PCRE) have been able to use:-

\w{3}

However with this I was unable to restart nginx. \w\w\w was OK, as was ... and even ..+, but any use of {} as a fixed number of occurrences, or range etc and nginx refused to start.

Is there some magic pixie dust required in order to be able to use these basic regex functions?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 75
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready