Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Regex 'bounds'

$
0
0
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?

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>