Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 3
    Good question. The information you seek should be part of the Java docs on Regex and Matcher. Sadly, it isn't. Commented Oct 7, 2015 at 20:12
  • 4
    A real shame. This functionality seems to exist out of the box in nearly every other language (that has regular expression support). Commented Apr 2, 2016 at 4:22