Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #19474
| Message-ID | <4180203.T6N6VvZNV1@PointedEars.de> (permalink) |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Organization | PointedEars Software (PES) |
| Date | 2013-04-25 21:02 +0200 |
| Subject | Re: Regular expression |
| Newsgroups | comp.lang.javascript |
| References | <klbk00$8ks$1@dont-email.me> <klbr98$2pp$1@dont-email.me> |
Denis McMahon wrote:
> On Thu, 25 Apr 2013 18:04:12 +0200, Tony wrote:
>> So how should I write to replace - with / in the pattern
>
> s = s.replace( /-/g, "/" );
>
> JavaScript[0] regex is *not* pcre,
Correct.
> and brackets or braces "(" and ")" to capture subsets of the re is not
> supported.
Wrong again.
> See http://www.sined.co.uk/tmp/jsregex.htm for a possible solution.
No, don't.
--
PointedEars
Twitter: @PointedEars2
Please do not Cc: me. / Bitte keine Kopien per E-Mail.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Regular expression "Tony" <tony.johansson@inport.com> - 2013-04-25 18:04 +0200
Re: Regular expression Scott Sauyet <scott.sauyet@gmail.com> - 2013-04-25 10:07 -0700
Re: Regular expression "Tony" <tony.johansson@inport.com> - 2013-04-26 11:27 +0200
Re: Regular expression Denis McMahon <denismfmcmahon@gmail.com> - 2013-04-25 18:05 +0000
Re: Regular expression Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-04-25 21:02 +0200
Re: Regular expression Scott Sauyet <scott.sauyet@gmail.com> - 2013-04-26 11:15 -0700
Re: Regular expression Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-04-26 21:17 +0200
csiph-web