Oracle Community Directory
Oracle Community FAQ
My Oracle Support Community (MOSC)
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
: Apr 19, 2007 9:45 AM by
negation of a phrase in regular expressions
Apr 19, 2007 9:24 AM
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 9:45 AM
in response to
String regex = "/[^/]+/(!?GeneratedImage)[^/]+/[^/]+\\.png";