[Linux-Biella] R: problema espressione regolare

Andrea Musuruane musuruan a gmail.com
Lun 4 Feb 2008 14:17:45 CET


Dato che le espressioni regolari non le sapete usare (e non sono affatto
semplici da usare se non le conoscete), se volete solo controllare che una
stringa contenga i tag <script> o <?, perché non usate strpos? Oltretutto
strpos è più veloce di una regexp...

Ciao,

Andrea.


2008/2/4, Remotes <webmaster a remotes.it>:
>
> Alle 13:57, lunedì 4 febbraio 2008, Scopel Emanuele (DD PIV) ha scritto:
> > if (preg_match("[^a-zA-Z0-9]?{,3}",$content)) return KO
>
> Warning: preg_match() [function.preg-match]: Unknown modifier '?'
> in /web/htdocs/www.remotes.it/home/bilug/secureform.php on line 12
>
> uff non riesco a capire...
>
> comunque grazie della risposta :D
>
> --
> Nicolò "Remotes" Lucia
> Debian ETCH (XFCE)
> "the 449257th penguin"
> _______________________________________________
> Linux mailing list
> Linux a ml.bilug.linux.it
> http://ml.bilug.linux.it/mailman/listinfo/linux
>
-------------- parte successiva --------------
Un allegato HTML è stato rimosso...
URL: http://ml.bilug.linux.it/pipermail/linux/attachments/20080204/7d2948aa/attachment.html 


Maggiori informazioni sulla lista Linux