In this very specific example, you can change the \w+ into the lazy version: \w+?. If you're looking for a solution to a more general problem, this may not be appropriate.
In reply to Re: RegExp Matched Values
by AR
in thread RegExp Matched Values
by rpike
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |