Page 1 of 1

no special charactors

Posted: Fri Jul 16, 2010 11:56 pm
by cardi777
Hi all,

i have the expression that works well, but doesn't allow for spaces in the text. Does anyone know how I can fi this?

Code: Select all

/^[0-9a-zA-Z]+$/
I don't know regex well at all. Hoping its an easy one!

Cheers,
Doug

Re: no special charactors

Posted: Fri Jul 16, 2010 11:58 pm
by cardi777
cardi777 wrote:Hi all,

i have the expression that works well, but doesn't allow for spaces in the text. Does anyone know how I can fi this?

Code: Select all

/^[0-9a-zA-Z]+$/
I don't know regex well at all. Hoping its an easy one!

Cheers,
Doug
actually, forget it. I figured it out.

Code: Select all

/^[0-9a-zA-Z ]+$/
just added a space! woohoo