ExtJS, email validation (regex)

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 :


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


hav fun

ExtJS, email validation using regex

Leave a Reply