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.??
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:
[:digit:]
for digits (same as [0-9]
)\d
shortcut for digits