Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #28385
| Path | csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail |
|---|---|
| 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 | Mon, 13 Jul 2015 16:50:40 -0300 |
| Organization | Aioe.org NNTP Server |
| Lines | 25 |
| Message-ID | <mo14qf$8mk$1@speranza.aioe.org> (permalink) |
| References | <9b0a260a-6988-469c-9f5a-aa738b847527@googlegroups.com> |
| NNTP-Posting-Host | EDa9VJlJYzEMTP8sx0snWA.user.speranza.aioe.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1252 |
| Content-Transfer-Encoding | 7bit |
| X-Complaints-To | abuse@aioe.org |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 |
| X-Notice | Filtered by postfilter v. 0.8.2 |
| Xref | csiph.com comp.lang.javascript:28385 |
Show key headers only | View raw
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