Ahh! I see you've added .* before each match. Many thanks for the working example.
Am I correct in thinking that both lookaheads must be anchored in the same position (which is ^ in the example above?)
Because they are both anchored at the start of the string, each lookahead can match multiple of any character before the string I'm looking for (e.g. name=bob) as this allows each lookahead to 'seek' forward independently, and succeed at a different point in the string?
In reply to Re^2: Multiple regexs into single combined regex using lookaheads
by mxb
in thread Multiple regexs into single combined regex using lookaheads
by mxb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |