Forum /
Ext JS Community Forums 4.x /
Ext: Q&A /
Answered: How to allow spaces in textfield
Answered: How to allow spaces in textfield
Hi Guys,
I have textfield in my formpanel. I want to add the forename and surname with spaces presently am using maskRe : /[a-z]/i, , I want spaces to included with text please let me know how to mask it
Best Answer Posted by
lucasguaru
Haha. Sorry, I didn't notice that.
/([a-zA-Z\s])/
a-z Lower Alpha
A-Z Upper Alpha
\s Spaces and tabs
Is that what you need?
Sencha User
thx buddy . that one is posted by me only for Alt Gr characters
Sencha User
Haha. Sorry, I didn't notice that.
/([a-zA-Z\s])/
a-z Lower Alpha
A-Z Upper Alpha
\s Spaces and tabs
Is that what you need?
Originally Posted by
lucasguaru
Haha. Sorry, I didn't notice that.
/([a-zA-Z\s])/
a-z Lower Alpha
A-Z Upper Alpha
\s Spaces and tabs
Is that what you need?
thx I did fix it
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us