Jump to content

Simple regex help


gergy008

Recommended Posts

I use it in php too... The php version does the same thing as the javascript one, It recognises anything with a letter or a number in it, And doesn't reject if it has a symbol in it.

 

Show us a short sample code which reproduces the issue of not rejecting subject strings containing symbols.  The only non-alphanumeric symbol that should be allowed by that regex (in PHP/PCRE) is a trailing newline character.

Link to comment
https://forums.phpfreaks.com/topic/205352-simple-regex-help/#findComment-1074894
Share on other sites

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.