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 - ". " to ". ") |
||
(14 intermediate revisions by the same user not shown) | |||
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]]. | ||
---- | ---- | ||
---- | ---- | ||
==References== | |||
===2010=== | == References == | ||
=== 2010 === | |||
* http://docs.oracle.com/javase/1.4.2/docs/api/java/util/regex/Pattern.html | * 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: <P> <code>Pattern p = Pattern.compile("a*b"); <BR> Matcher m = p.matcher("aaaaab"); <BR> boolean b = m.matches();</code> | ||
===2002=== | === 2002 === | ||
* http://java.sun.com/developer/technicalArticles/releases/1.4regex/ | * http://java.sun.com/developer/technicalArticles/releases/1.4regex/ | ||
** A regular expression is a pattern of characters that describes a set of strings. | ** A regular expression is a pattern of characters that describes a set of strings. | ||
---- | ---- | ||
__NOTOC__ | __NOTOC__ | ||
[[Category:Concept]] | [[Category:Concept]] |
Latest revision as of 12:25, 2 August 2022
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.