Connect with me

Latest Tweets

ExtJS, email validation (regex)

Posted on by admin


ExtJS doesn’t support email validation with all real world email addresses using vtype :’email’….. but ExtJS has given us regex config for any textfield….. so idea is to use that regex for email validation on any textfield used for storing email……

Email Validation How to

validate email field using regex for emails which contains ‘ character as well….
for example :
abc-123.abc’snepal@mavendeveloper.com

Example

xtype: ‘textfield’,
fieldLabel: ‘email’,
regex: /^([\w\-\'\-]+)(\.[\w-\'\-]+)*@([\w\-]+\.){1,5}([A-Za-z]){2,4}$/,

cheers

hav fun



ExtJS, email validation using regex

Share
[del.icio.us] [Digg] [dzone] [Facebook] [Friendsite] [Google] [LinkedIn] [MySpace] [Twitter] [Windows Live] [Yahoo!] [Email]

      


Leave a Reply

Your email address will not be published. Required fields are marked *

*


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


What is difference between managed and backing beans?

Although general convention is to use one Managed beans per JSF page/fragment, but managed beans can be used with multiple pages.  But Backing Bean can be only used for single page/fragment. Normally, Managed Bean is desired to have Pageflow scope, … Continue reading