[Php-it] aiuto espressioni regolari
Matteo Giacomazzi
matteo.giacomazzi at gmail.com
Wed Sep 12 12:27:17 CEST 2007
Il 12/09/07, daniele befera <daniele.befera at gmail.com> ha scritto:
>
> come faccio da:
>
> !preg_match("/^\w{5,20}$/", $username)
>
> a far si che vengano accettati anche i caratteri - ! @ ( ) / \ # ???????
>
>
A occhio:
"/^[\w!@\(\)\/\\#]{5,20}$/"
--
Matteo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ziobudda.net/pipermail/php-it/attachments/20070912/101ef50a/attachment.htm
More information about the Php-it
mailing list