http://www.perlmonks.org?node_id=1047311


in reply to Help with my regex

I thought the ^ncq meant do not match.
No, [^ncq] is a character class (see perlretut).

Tip #9 from the Basic debugging checklist (YAPE::Regex::Explain)

[^ncq] any character except: 'n', 'c', 'q'