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


in reply to Character Class Abbreviations

Perhaps you could show some examples of these? I'm a bit confused...
I tried
if ($_ =~ [[en]]) { print "yes\n";} else { print "no\n";}
Didn't work :( Always printed no, even when I had "en" in the document :(

Code tags added by Arunbear