akkinenik
asked on
regular expression for numbers alphabets and space
I need a regular expression which allows only numbers alpabets and space
"^[0-9a-zA-Z ]$"
ASKER
i need a regular expression to validate textbox to allow only alphabets numbers and space like
Air India
Air123 Space
Air India
Air123 Space
ASKER
and this is for .net
Hi Dude,
You can try this,
Dim RegexObj as Regex = New Regex("^\[0-9a-zA-Z ]*$")
Dim val
val = "Freinkes 9y"
RegexObj.IsMatch(val)
This will return true if your string has only alphabets,digits,spaces.
You can try this,
Dim RegexObj as Regex = New Regex("^\[0-9a-zA-Z ]*$")
Dim val
val = "Freinkes 9y"
RegexObj.IsMatch(val)
This will return true if your string has only alphabets,digits,spaces.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.