Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #32919
| From | Dr J R Stockton <reply1700@merlyn.demon.co.uk.invalid> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: regexp 0 - 3 digits |
| Date | 2017-04-03 19:59 +0100 |
| Organization | Home |
| Message-ID | <FOo421avup4YFwLk@invalid.uk.co.demon.merlyn.invalid> (permalink) |
| References | <v_edndmyGa_2KlXFnZ2dnUU7-I_NnZ2d@westnet.com.au> <26369440-804b-490e-b458-1c50b35c043f@googlegroups.com> |
In comp.lang.javascript message <26369440-804b-490e-b458-1c50b35c043f@go
oglegroups.com>, Wed, 15 Mar 2017 11:54:43, Dr J R Stockton
<J.R.Stockton@physics.org> posted:
>On Wednesday, March 15, 2017 at 3:39:34 AM UTC, Andrew Poulos wrote:
>This will tell you whether the string is right (tested)
>
> Ans = /^\d\d:\d\d:\d\d,\d?\d?\d?$/.test(Str)
Or, if the comma is a decimal separator,
Ans = /^\d\d:\d\d:\d\d(,\d\d?\d?)?$/.test(Str)
and you can use the RegExps with Str.match(Reg).
>ANNOUNCE : it looks as if my favoured E-mail software can no longer
>connect to the Internet (because of the Other End), so I may be
>reduced to using Google, as here. :-{{
Announce : I discovered last Saturday that the necessary server would
again consider my login -- and so have about 19,500 articles or headers
to consider.
--
(c) John Stockton, Surrey, UK. ¬@merlyn.demon.co.uk Turnpike v6.05 MIME.
Merlyn Web Site < > - FAQish topics, acronyms, & links.
---
This email has been checked for viruses by AVG.
http://www.avg.com
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
regexp 0 - 3 digits Andrew Poulos <ap_prog@hotmail.com> - 2017-03-15 14:39 +1100
Re: regexp 0 - 3 digits JJ <jj4public@vfemail.net> - 2017-03-15 10:55 +0700
Re: regexp 0 - 3 digits Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2017-03-15 06:42 +0100
Re: regexp 0 - 3 digits "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-03-15 09:19 +0100
Re: regexp 0 - 3 digits Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2017-03-15 09:29 +0100
Re: regexp 0 - 3 digits Julio Di Egidio <julio@diegidio.name> - 2017-03-15 03:01 -0700
Re: regexp 0 - 3 digits "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2017-03-15 05:39 -0700
Re: regexp 0 - 3 digits Julio Di Egidio <julio@diegidio.name> - 2017-03-15 05:20 -0700
Re: regexp 0 - 3 digits "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2017-03-15 05:43 -0700
Re: regexp 0 - 3 digits Julio Di Egidio <julio@diegidio.name> - 2017-03-15 05:48 -0700
Re: regexp 0 - 3 digits "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2017-03-15 06:28 -0700
Re: regexp 0 - 3 digits Julio Di Egidio <julio@diegidio.name> - 2017-03-15 06:43 -0700
Re: regexp 0 - 3 digits Jon Ribbens <jon+usenet@unequivocal.eu> - 2017-03-15 14:06 +0000
Re: regexp 0 - 3 digits Julio Di Egidio <julio@diegidio.name> - 2017-03-15 07:56 -0700
Re: regexp 0 - 3 digits Jon Ribbens <jon+usenet@unequivocal.eu> - 2017-03-15 16:05 +0000
Re: regexp 0 - 3 digits Julio Di Egidio <julio@diegidio.name> - 2017-03-15 21:12 -0700
Re: regexp 0 - 3 digits Jon Ribbens <jon+usenet@unequivocal.eu> - 2017-03-16 11:04 +0000
Re: regexp 0 - 3 digits "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2017-03-15 08:12 -0700
Re: regexp 0 - 3 digits "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2017-03-15 05:45 -0700
Re: regexp 0 - 3 digits Dr J R Stockton <J.R.Stockton@physics.org> - 2017-03-15 11:54 -0700
Re: regexp 0 - 3 digits Dr J R Stockton <reply1700@merlyn.demon.co.uk.invalid> - 2017-04-03 19:59 +0100
Re: regexp 0 - 3 digits "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-04-04 09:38 +0200
Re: regexp 0 - 3 digits Dr J R Stockton <J.R.Stockton@physics.org> - 2017-04-04 06:20 -0700
csiph-web