in reply to Strange regex-behaviour
/^([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!
|
|---|