Jump to content

Put a '+' in regex


fry2010

Recommended Posts

I have an email preg_match() expression that im trying to include a '+' sign in, so that it allows this at the start before the @.

 

'/^[^\x00-\x20()<>@,;:\\".[\]\x7f-\xff]+(?:\.\+[^\x00-\x20()<>@,;:\\".[\]\x7f-\xff]+)*\@[^\x00-\x20()<>@,;:\\".[\]\x7f-\xff]+(?:\.[^\x00-\x20()<>@,;:\\".[\]\x7f-\xff]+)+$/'

 

 

Link to comment
https://forums.phpfreaks.com/topic/156733-put-a-in-regex/
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.