Hey all. I've done much googling, read the section on regular-expressions.info , experimented with an online tool, and even played around with powertoy, but I am stuck on understanding Negative Lookahead.
My goal is to discern: "Line that begins with an apostrophe, and does not have the word generator in it."
Could someone explain why this pattern:
'.*(?!generator)
doesn't achieve that goal, and suggest something which would? The example text I'm working with is:
'blah blah
'here is a generator text line
Your advice would be so helpful!
Thanks a lot.
Michael