Re: [AngularJS] ng-pattern not working

2016-07-26 Thread 'Lucas Lacroix' via AngularJS
This seems like an issue with regex. I would try out a service like this: https://regex101.com/ On Tue, Jul 26, 2016 at 10:54 AM, Rajan Singh wrote: > Hi, > > I have pattern which is /^\w(?:(?![ \\.']{2,})[\w \\.'])*/. It is for > name which starts with words &

[AngularJS] ng-pattern not working

2016-07-26 Thread Rajan Singh
Hi, I have pattern which is /^\w(?:(?![ \\.']{2,})[\w \\.'])*/. It is for name which starts with words & allows .(period), (space), '(Single Quote) but two consecutive .(period), (space), '(Single Quote) are not allowed. I am using ng-pattern= /^\w(?:(?![ \\.']{2,})[\w \\.'])*/ which is not