What regular expression engine does Nginx use? There are a lot of possibilities. More to the point, what flavor of syntax does it support, that is, what syntax features can I make use of?
In the 1980s, the more complicated regexes arose in Perl, which originally derived from a regex library written by Henry Spencer (1986), who later wrote an implementation of Advanced Regular Expressions for Tcl.
It is generally also the regex flavor used by applications developed in these programming languages. Java: The regex flavor of the java. util. regex package, available in the Java 4 (JDK 1.4.
Python has two major implementations, the built in re and the regex library. Ruby 1.8, Ruby 1.9, and Ruby 2.0 and later versions use different engines; Ruby 1.9 integrates Oniguruma, Ruby 2.0 and later integrate Onigmo, a fork from Oniguruma.
Thanks! Another perspective: Look at regular expressions as a "DSL" for regular automata. regular expressions already are a domain specific language -- a language for parsing expressions. It may not be very human-friendly but it is a language for a very specific domain.
Nginx uses the PCRE library. The compile-time options list has some notes on this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With