in reply to Reg Exp to handle variations in the matched pattern

I agree that something's not quite clear about what you're trying to match.

Do you want the \r to be at the end of the line? Then you can use the $ anchor at the end of the regex.

  • Comment on Re: Reg Exp to handle variations in the matched pattern