jregex
Interface REFlags
- All Known Implementing Classes:
- Pattern
- public interface REFlags
Field Summary |
static int |
DEFAULT
All the foolowing options turned off |
static int |
DOTALL
Affects the behaviour of dot(".") tag. |
static int |
IGNORE_CASE
Pattern "a" matches both "a" and "A". |
static int |
IGNORE_SPACES
Affects how the space characters are interpeted in the expression. |
static int |
MULTILINE
Affects the behaviour of "^" and "$" tags. |
static int |
UNICODE
Affects whether the predefined classes("\d","\s","\w",etc) in the expression are interpreted as belonging to Unicode. |
static int |
XML_SCHEMA
Turns on the compatibility with XML Schema regular expressions. |
DEFAULT
public static final int DEFAULT
- All the foolowing options turned off
- See Also:
- Constant Field Values
IGNORE_CASE
public static final int IGNORE_CASE
- Pattern "a" matches both "a" and "A".
Corresponds to "i" in Perl notation.
- See Also:
- Constant Field Values
MULTILINE
public static final int MULTILINE
- 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.
- See Also:
- Constant Field Values
DOTALL
public static final int DOTALL
- 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.
- See Also:
- Constant Field Values
IGNORE_SPACES
public static final int IGNORE_SPACES
- 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.
- See Also:
- Constant Field Values
UNICODE
public static final int UNICODE
- 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;
- See Also:
- Constant Field Values
XML_SCHEMA
public static final int XML_SCHEMA
- Turns on the compatibility with XML Schema regular expressions.
- See Also:
- Constant Field Values
Copyright © 2002-2007 JRuby Team. All Rights Reserved.