A
Alan
The Java SE 6.0 API documentation for the Pattern class in
java.util.regex says the caret ("^") can be used in a regular
expression to find the beginning of a line. However, it can also be
used to denote negation (see "Character classes" section). How does
Java tell the difference in this usage?
Thanks, Alan
java.util.regex says the caret ("^") can be used in a regular
expression to find the beginning of a line. However, it can also be
used to denote negation (see "Character classes" section). How does
Java tell the difference in this usage?
Thanks, Alan