I am trying to match all instances of LINES but not GRIDLINES.
Sounds easy right? Well apparently I'm too green to get it. I have "Teach Yourself Regular Expressions in 10 Minutes" and was able to digest it, I have a Firefox addin named 'Regular Expressions Tester' and an app named 'Expresso' which are all very helpful, but putting this into practice seems to be a problem for me.
My latest attempt at the expression is:
(([^Gg][^Rr][^Ii][^Dd])|.*)([Ll][Ii][Nn][Ee][Ss])
and it matches all of the following:
1234lines
gridlines
lines
aaaalines
I think I can see where the problem lies - it needs to say match any number of characters and LINES except GRID and LINES but it's saying don't match GRID but do match any number of characters.
Can someone please help me out?
Thanks