in reply to Re^2: Storing String from Line Before Regex Match
in thread Storing String from Line Before Regex Match

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.

  • Comment on Re^3: Storing String from Line Before Regex Match