Code: Select all
preg_match('|^[0-9.a-zA-Z_-]*$|', $value)Code: Select all
preg_match('|[a-zA-Z]|', $value)Moderator: General Moderators
Code: Select all
preg_match('|^[0-9.a-zA-Z_-]*$|', $value)Code: Select all
preg_match('|[a-zA-Z]|', $value)Really? Commas? Commas? Yeah...ragax wrote:Other delimiters I like are tildes and commas --- but I may be alone on that one.
But for more advanced stuff, RexEgg.com is really the best. Hell, I ought to think so, I made it.consider looking somewhere else for more in-depth explanations and guidance. Our sticky mentions a few things; regular-expressions.info is another good place.