Actually leaving out the square brackets is required! Not so much they didn't add anything as, they subtracted a lot! By now maybe the OP has read the regex docs and will realise that the square brackets denote a set of characters which matches just one character in the string being matched. It looks like the OP was thinking [] is equivalent to (). It's not.
In reply to Re^2: REGEX Frustration
by GrandFather
in thread REGEX Frustration
by RobertJ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |