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!

Regular Expressions and java

807607Jan 21 2007 — edited Jan 23 2007
hi everybody i have a little question:

Does anybody have an idea how i can accomplish the following task:

I want to have a regex that excludes words that contain a ++, --, __ but any word contains single occurence of these characters (+,-,_) should be matched.

I tried anything that i could think of but i can't seem to be able to find a working regex. Anybody have an idea
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 20 2007
Added on Jan 21 2007
21 comments
361 views