Java Regular Expression Statement

From GM-RKB
(Redirected from Java Regular Expression)
Jump to navigation Jump to search

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