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

essential - regex - supported metacharacters

    XMLWordPrintable

Details

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

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: