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


Groups > comp.lang.javascript > #7794

Re: Regular expression question

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news1.dtag.de!feedme.news.telefonica.de!telefonica.de!news.tele.dk!feed118.news.tele.dk!not-for-mail
Newsgroups comp.lang.javascript
Subject Re: Regular expression question
References <a9fa509f-5f3c-4926-abc6-c77a21427d8f@j36g2000prh.googlegroups.com> <mxcnirot.fsf@gmail.com> <2997930.SPkdTlGXAF@PointedEars.de> <d20558c5-26d2-4464-9068-db92e87fec9e@a17g2000yqj.googlegroups.com> <c21d1200-abd0-430b-a97e-77c5bcecab47@i15g2000yqm.googlegroups.com> <1674123.KyhKTayAOI@PointedEars.de>
From Lasse Reichstein Nielsen <lrn.unread@gmail.com>
Date Fri, 28 Oct 2011 18:50:13 +0200
Message-ID <vcr93vsq.fsf@gmail.com> (permalink)
User-Agent Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Rational FORTRAN, windows-nt)
Cancel-Lock sha1:EeWvkbvlgCOKrGw37tcwEpXWPxU=
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Lines 21
Organization TDC Totalloesninger
NNTP-Posting-Host 87.57.52.80
X-Trace 1319820615 dtext01.news.tele.dk 294 87.57.52.80:39468
X-Complaints-To abuse@post.tele.dk
Xref x330-a1.tempe.blueboxinc.net comp.lang.javascript:7794

Show key headers only | View raw


Thomas 'PointedEars' Lahn <PointedEars@web.de> writes:

> Antony Scriven wrote:

>> is also the reason why Lasse's solution (using
>> String.prototype.lastIndexOf) is preferable IMHO. --Antony
>
> http://foo.example/bar

My "solution" was very hardcoded to the format that the OP used, i.e.,
ending in "/somename.html".
Since that was all the examples he gave, and no real textual explanation,
it's impossible to generalize further.

Maybe I should have said that :)

/L
-- 
Lasse Reichstein Holst Nielsen
 'Javascript frameworks is a disruptive technology'
  

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


Thread

Regular expression question cerr <ron.eggler@gmail.com> - 2011-10-25 21:43 -0700
  Re: Regular expression question Mike Duffy <never@you.mind.com> - 2011-10-26 12:11 +0000
  Re: Regular expression question Denis McMahon <denismfmcmahon@gmail.com> - 2011-10-26 16:54 +0000
  Re: Regular expression question Lasse Reichstein Nielsen <lrn.unread@gmail.com> - 2011-10-26 19:33 +0200
    Re: Regular expression question Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-10-26 23:40 +0200
      Re: Regular expression question Antony Scriven <adscriven@gmail.com> - 2011-10-27 17:30 -0700
        Re: Regular expression question Antony Scriven <adscriven@gmail.com> - 2011-10-27 17:39 -0700
          Re: Regular expression question Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-10-28 03:50 +0200
            Re: Regular expression question Antony Scriven <adscriven@gmail.com> - 2011-10-28 08:46 -0700
            Re: Regular expression question Lasse Reichstein Nielsen <lrn.unread@gmail.com> - 2011-10-28 18:50 +0200
              Re: Regular expression question Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-10-28 19:50 +0200
                Re: Regular expression question Antony Scriven <adscriven@gmail.com> - 2011-10-28 11:41 -0700
                Re: Regular expression question Antony Scriven <adscriven@gmail.com> - 2011-10-28 12:54 -0700
  Re: Regular expression question Dr J R Stockton <reply1143@merlyn.demon.co.uk> - 2011-10-27 19:41 +0100
    Re: Regular expression question Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-10-28 04:12 +0200

csiph-web