Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #18963
| From | Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Help creating regex |
| Date | 2013-03-21 20:20 +0000 |
| Organization | Home |
| Message-ID | <E39XW5DPu2SRFwMU@invalid.uk.co.demon.merlyn.invalid> (permalink) |
| References | <mq0kk8ljpnig2uhebno0ogrb2tc2gqb4oo@4ax.com> <sq5kk85bg1uk5vkg0brt10hhk5a8cjh3ac@4ax.com> <vr2kk85pj3kfai9b9mu2qpuom24deooiol@4ax.com> |
In comp.lang.javascript message <vr2kk85pj3kfai9b9mu2qpuom24deooiol@4ax.
com>, Wed, 20 Mar 2013 12:19:07, "Joey@still_Learning.invalid"
<Joey@still_Learning.invalid> posted:
>Jim T. wrote:
>
>>On Wed, 20 Mar 2013 11:47:09 -0700, "Joey@still_Learning.invalid"
>><Joey@still_Learning.invalid> wrote:
>>
>>>I know next to nothing about regex, but I need to determine whether a
>>>decimal value is represented in a string.
>>>
>>>Specifically, if the string 'XX' contains the phrase 7.4 within XX, I need
>>>a test to come out true.
>>
>>Unless I misunderstood your question you don't need RegExp, indexOf()
>>will do.
>
>You understood it correctly, and I resolved my issue using indexOf.
But there is, for most purposes, no decimal value 7.4 in the string
"aaa67.45zzz"; and, depending on circumstances, there is no decimal
value 7.4 in the string "7.4e5", although there is one in "7.4e0".
An ill-considered or inexact question will often, but not necessarily,
get an answer inappropriate for the purpose.
--
(c) John Stockton, nr London UK. ???@merlyn.demon.co.uk Turnpike v6.05 MIME.
Web <URL:http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.
Check boilerplate spelling -- error is a public sign of incompetence.
Never fully trust an article from a poster who gives no full real name.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Help creating regex "Joey@still_Learning.invalid" <Joey@still_Learning.invalid> - 2013-03-20 11:47 -0700
Re: Help creating regex Danny <dann90038@gmail.com> - 2013-03-20 12:08 -0700
Re: Help creating regex "Joey@still_Learning.invalid" <Joey@still_Learning.invalid> - 2013-03-20 12:18 -0700
Re: Help creating regex Jim T. <x@y.z> - 2013-03-20 15:11 -0500
Re: Help creating regex "Joey@still_Learning.invalid" <Joey@still_Learning.invalid> - 2013-03-20 12:19 -0700
Re: Help creating regex Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> - 2013-03-21 20:20 +0000
Help creating 'simple' regex "Joey@still_Learning.invalid" <Joey@still_Learning.invalid> - 2013-04-27 10:56 -0700
Re: Help creating 'simple' regex JJ <duh@nah.meh> - 2013-04-28 02:27 +0700
Re: Help creating 'simple' regex "Joey@still_Learning.invalid" <Joey@still_Learning.invalid> - 2013-04-27 16:39 -0700
Re: Help creating 'simple' regex "Joey@still_Learning.invalid" <Joey@still_Learning.invalid> - 2013-04-28 09:36 -0700
Re: Help creating 'simple' regex "Joey@still_Learning.invalid" <Joey@still_Learning.invalid> - 2013-04-29 01:41 -0700
Re: Help creating 'simple' regex Stefan Weiss <krewecherl@gmail.com> - 2013-04-27 22:27 +0200
Re: Help creating 'simple' regex Stefan Weiss <krewecherl@gmail.com> - 2013-04-27 22:34 +0200
Re: Help creating 'simple' regex "Joey@still_Learning.invalid" <Joey@still_Learning.invalid> - 2013-04-27 16:39 -0700
Re: Help creating 'simple' regex "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-04-28 09:20 +0200
Re: Help creating 'simple' regex "Joey@still_Learning.invalid" <Joey@still_Learning.invalid> - 2013-04-28 01:22 -0700
Re: Help creating 'simple' regex Stefan Weiss <krewecherl@gmail.com> - 2013-04-28 11:32 +0200
Re: Help creating 'simple' regex "Joey@still_Learning.invalid" <Joey@still_Learning.invalid> - 2013-04-28 09:53 -0700
Re: Help creating 'simple' regex Stefan Weiss <krewecherl@gmail.com> - 2013-04-28 19:41 +0200
Re: Help creating 'simple' regex "Joey@still_Learning.invalid" <Joey@still_Learning.invalid> - 2013-04-28 23:51 -0700
Re: Help creating 'simple' regex "Joey@still_Learning.invalid" <Joey@still_Learning.invalid> - 2013-04-28 09:14 -0700
Re: Help creating 'simple' regex "Joey@still_Learning.invalid" <Joey@still_Learning.invalid> - 2013-04-29 01:40 -0700
csiph-web