I like it.
This one seems to have the least side effects, i.e. I don't have to extract anything before, and the regex will take care of failing when the pattern is not in the wanted position.
So simple, but I did not think about it!
Thanks.
In reply to Re^2: Applying a regex to part of a string
by holdyourhorses
in thread Applying a regex to part of a string
by holdyourhorses
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |