0

For reasons (basically that I make everything more complicated than it should be) I'm trying to go through strings one at a time and select ones that DON'T match a certain pattern (and IIRC if astring in longline lets you search for a tuple but if it was as simple as that I'd be using a tuple). Like I say I feed it these strings, and want the regex to match the lines for red, black and the last line:

Red is great
Light blue is okay
Green is grass
Black is boring
Nothing to see here

I can figure out on my own that (?i).*(blue|black).* (what I need to search for changes while running, these strings are just a basic example), will match the blue and black lines, but I have no idea how to match anything which doesn't meet that criteria. Knowledge wise, with regex I'm at the point where I know how to dig my own grave but not get back out. Is there something obvious I'm missing?

Slashee the Cow
  • 173
  • 2
  • 8

0 Answers0