Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #16436

Re: str.replace() not catching, need a second set of eyes

From Dr J R Stockton <reply1240@merlyn.demon.co.uk.invalid>
Newsgroups comp.lang.javascript
Subject Re: str.replace() not catching, need a second set of eyes
Date 2012-10-06 19:10 +0100
Organization Home
Message-ID <j6JwGZDwQHcQFwtJ@invalid.uk.co.demon.merlyn.invalid> (permalink)
References <8815d054-214a-4c1d-b8d4-19c0916589e3@googlegroups.com> <XnsA0E1AB80D3AD7eejj99@194.109.133.133> <5341950e-842e-4c73-85a8-02fed57f7d7d@googlegroups.com> <XnsA0E263A34B326eejj99@194.109.133.133> <fd11da20-8871-4caf-a83e-409e9c939a88@googlegroups.com>

Show all headers | View raw


In comp.lang.javascript message <fd11da20-8871-4caf-a83e-409e9c939a88@go
oglegroups.com>, Fri, 5 Oct 2012 01:42:39, Jason C <jwcarlton@gmail.com>
posted:

>
>For future readers, I'm using [\s\S] because JS doesn't necessarily match . to \n. Using [\s\S] does.
>

Did you consider [^] ??
<http://www.merlyn.demon.co.uk/js-valid.htm#RG> says it works.

-- 
(c) John Stockton, nr London UK. Mail, see homepage.  DOS 3.3, 6.20; WinXP, 7.
   Web  <http://www.merlyn.demon.co.uk/> - FAQqish topics, acronyms & links.
   PAS EXE TXT ZIP via  <http://www.merlyn.demon.co.uk/programs/00index.htm>
   My DOS  <http://www.merlyn.demon.co.uk/batfiles.htm> - also batprogs.htm.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

str.replace() not catching, need a second set of eyes Jason C <jwcarlton@gmail.com> - 2012-10-03 02:25 -0700
  Re: str.replace() not catching, need a second set of eyes "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-10-03 14:51 +0000
    Re: str.replace() not catching, need a second set of eyes Jason C <jwcarlton@gmail.com> - 2012-10-03 12:36 -0700
      Re: str.replace() not catching, need a second set of eyes Danny <dann90038@gmail.com> - 2012-10-03 13:36 -0700
      Re: str.replace() not catching, need a second set of eyes "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-10-04 07:47 +0000
        Re: str.replace() not catching, need a second set of eyes Jason C <jwcarlton@gmail.com> - 2012-10-05 01:42 -0700
          Re: str.replace() not catching, need a second set of eyes Dr J R Stockton <reply1240@merlyn.demon.co.uk.invalid> - 2012-10-06 19:10 +0100

csiph-web