So, it did the second pattern match first, and interpreted $1 to be the result of that pattern match
Then why does quoting $1 'fix' it?
In reply to Re^2: Strange Regex Behavior
by BrowserUk
in thread Strange Regex Behavior
by Manchego
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |