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.
In reply to Re: Reg Exp to handle variations in the matched pattern
by bitingduck
in thread Reg Exp to handle variations in the matched pattern
by markjrouse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |