If you use character classes (which is the thing inside [ ... ]) you exlude the characters mentioned in the character class if the first character after the [ is a ^. It sort of negates the list within the square brackets or includes all characters not in the list.
CountZero
"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law
In reply to Re: Re: Re: Regex and a pseudo-XML tag
by CountZero
in thread Regex and a pseudo-XML tag
by inblosam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |