Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6985572

essential - regex - supported metacharacters

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 6-pool
    • docs
    • b08
    • generic
    • generic
    • Not verified

      Error on tutorial page http://download.oracle.com/javase/tutorial/essential/regex/literals.html
      quote: The metacharacters supported by this API are: ([{\^-$|]})?*+.

      The characters <, !, and = are ommitted in this list. Java regex, for all practical matters being perl 5 regex, support positive and negative lookahead and lookbehind:

      foo(?=bar)
      foo(?!bar)
      (?<=foo)bar
      (?<!foo)bar

            sharonz Sharon Zakhour (Inactive)
            skannan Sowmya Kannan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: