Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #28385
| From | Joao Rodrigues <groups_jr-1@yahoo.com.br> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Regular expression for email or mobile number in one field like facebook email/mobile field in registration |
| Date | 2015-07-13 16:50 -0300 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <mo14qf$8mk$1@speranza.aioe.org> (permalink) |
| References | <9b0a260a-6988-469c-9f5a-aa738b847527@googlegroups.com> |
On 12-07-2015 00:55, ashokacharya1988@gmail.com wrote: > > Regular expression for email or mobile number in one field like > facebook email/mobile field in registration I am building a > registration form in in which i am trying a make a field say > email/mobile where user can either put email address or mobile > number with country code.similiar approach is used in facebook > registration.can anyone have solution for such regular expression. i > am building the form using angularjs with its default validator. > You may try the HTML5 input type=email [1] which has good support by modern browsers [2]. Also, check out an example Regex by Cody Lindley at debuggex [3]. [1] <http://www.w3.org/TR/2014/CR-html5-20140204/forms.html#e-mail-state-(type=email)> [2] <http://caniuse.com/#feat=forms> [3] <https://www.debuggex.com/r/kk8zYcDftYnJawLR> -- Joao Rodrigues
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Regular expression for email or mobile number in one field like facebook email/mobile field in registration ashokacharya1988@gmail.com - 2015-07-11 20:55 -0700
Re: Regular expression for email or mobile number in one field like facebook email/mobile field in registration "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-07-12 11:07 +0200
Re: Regular expression for email or mobile number in one field like facebook email/mobile field in registration Steven D'Aprano <steve@pearwood.info> - 2015-07-12 22:05 +1000
Re: Regular expression for email or mobile number in one field like facebook email/mobile field in registration Dr J R Stockton <reply1500@merlyn.demon.co.uk.invalid> - 2015-07-13 23:13 +0100
Re: Regular expression for email or mobile number in one field like facebook email/mobile field in registration Steven D'Aprano <steve@pearwood.info> - 2015-07-14 12:47 +1000
Re: Regular expression for email or mobile number in one field like facebook email/mobile field in registration Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2015-07-13 16:50 -0300
Re: Regular expression for email or mobile number in one field like facebook email/mobile field in registration Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-14 16:38 +0200
csiph-web