/^([character-class].*?):(.*)/ #where character-class == a-zA-Z_)[3,
That is, the '[3,' is getting interpreted as part of the character class with its missing close bracket, not as some kind of modifier on the class.
Of course this isn't as strict a matching pattern as you were expecting!
In reply to Re: Strange regex-behaviour
by seattlejohn
in thread Strange regex-behaviour
by strat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |