Yes, but you forgot to put the trailing \n into the two regexes :-)
in reply to Re: Puzzled by regex
in thread Puzzled by regex
If I put it in, that makes the last one match as well:
Thanks for the replies guys.
Non-Greedy -- Match: ((____)).
Greedy -- Match: [[____]].
I'm about to mess with that code, but I was loathe to do that while I couldn't see why the ? had been included in the regex. I still don't see why it's there - but at least now I'm starting to feel a little confident that it serves no purpose. (I'll still probably leave it there ... because I'm feeling even more confident that it doesn't do any harm :-)