That's "Working as designed".
Would you expect to match ( stuff ) and ) stuff ( with the same regex? How would this be a generalisation?
In reply to Re^3: Match a pattern only if it is not within another pattern
by BrowserUk
in thread Match a pattern only if it is not within another pattern
by punkish
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |