| jregex.REFlags
All known Subclasses: jregex.Term, jregex.Pattern,
REFlags | public interface REFlags (Code) | | |
Field Summary | |
public int | DEFAULT | public int | DOTALL Affects the behaviour of dot(".") tag. | public int | IGNORE_CASE Pattern "a" matches both "a" and "A". | public int | IGNORE_SPACES Affects how the space characters are interpeted in the expression. | public int | MULTILINE Affects the behaviour of "^" and "$" tags. | public int | UNICODE Affects whether the predefined classes("\d","\s","\w",etc) in the expression are interpreted as belonging to Unicode. | public int | XML_SCHEMA Turns on the compatibility with XML Schema regular expressions. |
DEFAULT | public int DEFAULT(Code) | | All the foolowing options turned off
|
DOTALL | public int DOTALL(Code) | | Affects the behaviour of dot(".") tag. When switched off:
the dot matches any character but EOLs('\r','\n');
When switched on:
the dot matches any character, including EOLs.
This flag is sometimes referenced in regex tutorials as SINGLELINE, which confusingly seems opposite to MULTILINE, but in fact is orthogonal.
Corresponds to "s" in Perl notation.
|
IGNORE_CASE | public int IGNORE_CASE(Code) | | Pattern "a" matches both "a" and "A".
Corresponds to "i" in Perl notation.
|
IGNORE_SPACES | public int IGNORE_SPACES(Code) | | Affects how the space characters are interpeted in the expression. When switched off:
the spaces are interpreted literally;
When switched on:
the spaces are ingnored, allowing an expression to be slightly more readable.
Corresponds to "x" in Perl notation.
|
MULTILINE | public int MULTILINE(Code) | | Affects the behaviour of "^" and "$" tags. When switched off:
the "^" matches the beginning of the whole text;
the "$" matches the end of the whole text, or just before the '\n' or "\r\n" at the end of text.
When switched on:
the "^" additionally matches the line beginnings (that is just after the '\n');
the "$" additionally matches the line ends (that is just before "\r\n" or '\n');
Corresponds to "m" in Perl notation.
|
UNICODE | public int UNICODE(Code) | | Affects whether the predefined classes("\d","\s","\w",etc) in the expression are interpreted as belonging to Unicode. When switched off:
the predefined classes are interpreted as ASCII;
When switched on:
the predefined classes are interpreted as Unicode categories;
|
XML_SCHEMA | public int XML_SCHEMA(Code) | | Turns on the compatibility with XML Schema regular expressions.
|
|
|