Jump to content

[SOLVED] Simple eregi question


pianoman993

Recommended Posts

Quick question, I've been trying to figure out a way to use this preg_match function

 


if (!preg_match('/\A(?!-|_)[-_a-zA-Z0-9]{6,20}|(?<!-|_)\z/', $username))

 

but add an additional rule allowing only ONE space in the $username string. I fear the solution is aggravatingly simple :(

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.