preg_match() Pattern Help Needed
I am having trouble with regex and matching a string that DOESN'T contain a sub-string.
Here is an example:
From the list of jpeg files below I want to match only the files that DON'T contain the '.foo' sub-string.
blah_blahblah.foo.jpg
blahblah_blah.jpg
I have tried petterns such as:
/.[(foo)]/
/.[(foo)].jpg/
/.*[(.foo)].jpg/
/[foo].jpg/
and none of them work as I think they should.
Anyone have any suggestions?