a regular expression String argument. The returned Pattern
Friday, November 3rd, 2006COMMENTS (?x) Permits whitespace and comments in the pattern. When this mode is in effect, any whitespace in the pattern is ignored, and comments beginning with the # character are ignored to end-of-line. MULTILINE (?m) Turns on multiline mode. In multiline mode, the ^ and $ expressions match just after or just before (respectively) a line separator or the beginning or end of the character sequence. In normal mode, these expressions match only the beginning or end of the entire character sequence. DOTALL (?s) Dot (.) character matches any character, even line separators. By default, the dot expression does not match line separators. This option is equivalent to Perl’s single-line mode, hence the (?s) embedded flag name. CANON_EQ None Enables canonical equivalence. When this flag is specified, characters will be considered a match if and only if their canonical decompositions match. For example, the two-character sequence au030A (Unicode symbol “LATIN SMALL LETTER A” followed by symbol “COMBINING RING ABOVE”) will match the single character u00E5 (”LATIN SMALL LETTER A WITH RING”) when this flag is given. Canonical equivalence is not evaluated by default. See the character map definitions at http://www.unicode.org for canonical-equivalence details. This flag may incur a significant performance penalty. There is no embedded flag expression to enable canonical equivalence. Instances of the Pattern class are immutable; each is tied to a specific regular expression and cannot be modified. Pattern objects are also thread-safe and can be used concurrently by multiple threads. So, once you have a Pattern, what can you do with it? package java.util.regex; public final class Pattern implements java.io.Serializable{ // This is a partial API listing public String pattern() public int flags() public String[] split (CharSequence input, int limit) public String[] split (CharSequence input) 168
Note: If you are looking for top 10 and very good webhost to host and run your jsp application check Actions jsp hosting services