Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #16384
| Newsgroups | comp.lang.javascript |
|---|---|
| Subject | Re: str.replace() not catching, need a second set of eyes |
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
| References | <8815d054-214a-4c1d-b8d4-19c0916589e3@googlegroups.com> <XnsA0E1AB80D3AD7eejj99@194.109.133.133> <5341950e-842e-4c73-85a8-02fed57f7d7d@googlegroups.com> |
| Message-ID | <XnsA0E263A34B326eejj99@194.109.133.133> (permalink) |
| Date | 2012-10-04 07:47 +0000 |
Jason C wrote on 03 okt 2012 in comp.lang.javascript: > On Wednesday, October 3, 2012 10:51:34 AM UTC-4, Evertjan. wrote: > >> Some ancient browsers, including IE7, >> do not have nongreedy regex parsing. > > Ouch! I have a significant percentage of my traffic using IE7 (a > little over 22,000 visitors, which is 9.77%), and even a few using > IE6. > > Is there any way to test for that, other than checking for each > non-compatible browser one-at-a-time? Even if it's just to ignore the > str.search() Yes, we all used to make regex without the "non greedy" part in those old days. /<.+?>/ or sometimes: /<[/s/S]+?>/ used to be: /<[^>]+>/ > so that the Perl processing script can catch it. Neither cast ye your pearls before swine. -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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