Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Overlapping matches for a regex

800351Oct 9 2007 — edited Oct 10 2007
For the text "uncle alice sea jshell sea ejp", the actual text is huge and multilined though, the regex
(?s)\b\w+\b\W*sea\W*\b\w+\b
finds only "alice sea jshell". It can't find "jshell sea ejp". What should I have done to retrieve these overlapping matches?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 7 2007
Added on Oct 9 2007
2 comments
340 views