Jump to content

PHP regular expressions


menwn

Recommended Posts

Thank you for your reply.

 

I want to disable the ability to pass not alphanumeric characters. And this does not help a lot.

 

Up to now I had: preg_match("/[^a-zA-Zα-ωΑ-Ω0-9]/", $text)

 

It works ok but I can pass all letter strings which I want to forbid unless it has at least a digit in it.

 

thanks

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.