NameSilo

Need a regular expression

NamecheapNamecheap
Watch

user-7256

VIP Member
Impact
111
Hey,

Can somebody write a regular expression code for me that checks to make sure a string is nothing but numbers and letters?
(Then if not display an error)

Many thanks,
-Matt
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
PHP:
eregi("^[a-zA-Z0-9_]", $string_youre_checking)

That should work

-Steve
 
0
•••
Ah, thanks! ^_^
 
0
•••
CatchedCatched

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back