Hi All,
I am struggling with this problem from sometime.
My Requirement is :
I have a list of url against which i want to filter all gif images using regular expression. but if my url ends with ma.gif, i dont want to filter it.
Sample :
URL : "/BS/myImage/ma.gif" -- don't filter
URL : "/BS/myImage/ma1.gif" -- filter
URL : "/BS/myImage/1ma.gif" -- filter
URL : "/BS/myImage/ma.1gif" -- don't filter
Here is the code that i came up with
This works but exactly opposite to my requirement(except for last URL) . I can use if(! matcher.find()) , but the problem is that i can't change Code, just the
pattern configuration.
Any help on this would be appreciable.
Thanks in Advance!!
Regards,
Hemant