javaregex

In the regex world what's a flavor and which flavor does Java use?


I'm not a native English and so I don't understand well the meaning of 'flavor' may be is it referred to a regex syntax?? and if so how many regex syntax are there?

BRE ERE Perl etc.??


Solution

  • The term "flavor" refers to the regex engine – the syntax and additional properties supported by the particular regex engine.

    The Pattern class documents the properties of the Java regex engine. Aside from the basic things like the meaning of metacharacters, different implementations of regex engines support different types of syntaxes.

    For example: