recently I've been using [a-z] class range regexp in php. I don't know why, but instead of matching only a to z chars, it also matches control characters. Exemple:
preg_match("#^[a-z]{0,3}$#", "aa
")
is returning 1. (I'm on php 5.6). I would like to prevent the controls characters matched. I've done a few tests with [:^cntrl:] without much succcess. Could someone help me please. Thanks in advance.