alpha and alphanumeric validator

i know it’s an easy regular expression to write down, but that’s numeric as well, and we have it, and alpha/alphanumeric it’s hands down one of the most used validators (you get to use it for usernames, titles, etc)

[font=Times][size=2][font=arial, verdana, tahoma, sans-serif][size=2]Alphabetic/alphanumeric validation highly depends on the application and its language(s).

"Árvíztűrő Tükörfúrógép" may be a perfectly valid (though a bit stupid) username or title in a hungarian webapp.[/size][/font][/size][/font]

mmm right… well we could still have utf8 alphanumeric validation.

i know there might be some localization problem with languages like russian, but still the rest of the world would not have to write his own every single time <.<

i decided to do it and release it as an extension, but still i’d love to see something like that on the core.

here’s the link:

http://www.yiiframework.com/extension/alpha/