Java Regular Expression Statement: Difference between revisions
Jump to navigation
Jump to search
m (Text replace - "* <B>See:</B>" to "* <B><U>See:</U></B>") |
m (Text replacement - "<U>See:</U>" to "See:") |
||
Line 1: | Line 1: | ||
A [[Java Regular Expression Statement]] is a [[regular string expression statement]] that is a [[Java statement]]. | A [[Java Regular Expression Statement]] is a [[regular string expression statement]] that is a [[Java statement]]. | ||
* <B | * <B>See:</B> [[Perl Regular Expression Statement]]. | ||
---- | ---- | ||
---- | ---- |
Revision as of 02:14, 22 September 2014
A Java Regular Expression Statement is a regular string expression statement that is a Java statement.
References
2010
- http://docs.oracle.com/javase/1.4.2/docs/api/java/util/regex/Pattern.html
- QUOTE: A compiled representation of a regular expression. A regular expression, specified as a string, must first be compiled into an instance of this class. The resulting pattern can then be used to create a Matcher object that can match arbitrary character sequences against the regular expression. All of the state involved in performing a match resides in the matcher, so many matchers can share the same pattern. A typical invocation sequence is thus:
Pattern p = Pattern.compile("a*b");
Matcher m = p.matcher("aaaaab");
boolean b = m.matches();
- QUOTE: A compiled representation of a regular expression. A regular expression, specified as a string, must first be compiled into an instance of this class. The resulting pattern can then be used to create a Matcher object that can match arbitrary character sequences against the regular expression. All of the state involved in performing a match resides in the matcher, so many matchers can share the same pattern. A typical invocation sequence is thus:
2002
- http://java.sun.com/developer/technicalArticles/releases/1.4regex/
- A regular expression is a pattern of characters that describes a set of strings.