Ok, yet another regular expression question... (btw, if anyone knows of a good book or resource on regular expressions, feel free to throw it my way)
So, I'm in the process of matching links found in a web page based on 4 types of criteria
match this -> http://www.test.com/goodinfo/index.html
don't match this -> http://www.test.com/spam/index.html
1) The link starts with a given string (http://
2) The link contains a given string (test.com)
3) The link ends with a given string (index.html)
4) The link doesn't contain a given string (spam)
I've implemented 1-3
but I'm not sure how to implement 4. I know how to not match specific individual characters, but I really want to not match a specific string.
Can someone enlighten me?