Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There's a regex character class for that

Alphabetical only? $value =~ /[[:alpha:]]/

Ascii only? $value =~ /[[:ascii:]]/

http://perldoc.perl.org/perlrecharclass.html#Bracketed-Chara...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: