Oracle Community Directory
Oracle Community FAQ
Go Directly To
Oracle Technology Network Community
My Oracle Support Community
OPN Cloud Connection
Oracle Employee Community
Oracle User Group Community
OTN Speaker Bureau
Please enter a title.
You can not post a blank message. Please type your message and try again.
This discussion is archived
on Apr 19, 2007 2:45 PM by 807606
negation of a phrase in regular expressions
Apr 19, 2007 2:24 PM
I'm building a regular expression, and can't seem find a way to negate a phrase.
I need to find the following phrase
But to receive false for:
I've tried using the following negation lookahead:
String regexp = "/.*/(!?GeneratedImage)/.*\\.png";
But the following line returnes true instead of false:
HELP! I'm dying here... :(
This content has been marked as final.
Show 1 reply
Re: negation of a phrase in regular expressions
Apr 19, 2007 2:45 PM
in response to
String regex = "/[^/]+/(!?GeneratedImage)[^/]+/[^/]+\\.png";