Java Regular Expression Statement: Difference between revisions

From GM-RKB
Jump to navigation Jump to search
m (Text replacement - ". ----" to ". ----")
m (Text replacement - ". " to ". ")
 
Line 13: Line 13:
=== 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.


----
----

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();

2002