I just left the OP's character class code as it was. I don't know why he had multiple spaces in there.
I had tried several different solutions before deciding to just modify the OP's regex.
The $searchfor string is left over from an early test version, it should be removed. In fact, I think I'll
go do that now. Thanks for the catch.
In reply to Re^3: Storing String from Line Before Regex Match
by tybalt89
in thread Storing String from Line Before Regex Match
by Nico
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |