An RESyntax specifies the way a regular expression will be compiled.
This class provides a number of predefined useful constants for
emulating popular regular expression syntaxes. Additionally the
user may construct his or her own syntax, using any combination of the
syntax bit constants. The syntax is an optional argument to any of the
matching methods on class RE.
author: Wes Biggs
Called internally when constructing predefined syntaxes
so their interpretation cannot vary. Conceivably useful
for your syntaxes as well. Causes IllegalAccessError to
be thrown if any attempt to modify the syntax is made.
this object for convenient chaining
Changes the line separator string for regular expressions
created using this RESyntax. The default separator is the
value returned by the system property "line.separator", which
should be correct when reading platform-specific files from a
filesystem. However, many programs may collect input from
sources where the line separator is differently specified (for
example, in the applet environment, the text box widget
interprets line breaks as single-character newlines,
regardless of the host platform.
Note that setting the line separator to a character or
characters that have specific meaning within the current syntax
can cause unexpected chronosynclastic infundibula.
this object for convenient chaining