Article View: news.software.readers
Article #235444Re: [xnews] \b use
From: JimH
Date: Sat, 12 Sep 2009 15:26
Date: Sat, 12 Sep 2009 15:26
46 lines
2921 bytes
2921 bytes
Mike Yetto <myetto1@nycap.invalid> wrote in news:slrn20090912100732.373.twooffive@may.eternal-september.org: > Bada bing JimH <nvm@nunya.biz> bada bang: >> I'm curious.... >> >> Let's say I'm looking for a subject line that would consist of two >> strings, "first text" and "second text". I can be absolutely certain >> that there will be at least one word boundary between them, and it's >> extremely likely there will be many more than that. >> >> Would the following regexp work in the cases where there are two or >> more word boundaries between the two strings? >> > > Don't over think this. Just look for two different strings with > an unknown amount of text between them. > >> \bfirst text\b\bsecond text\b > > This will look for _first textsecond text_ with nothing but a > word boundary between text and second. If there is nothing > between them, there is nothing to define a word boundary and this > regex will never find anything. > >> >> If not, any suggestions? >> > > \bfirst text\b.*\bsecond text\b > >> (Basically, I'm looking to completely ignore anything between the two >> strings) > > This will not ignore everything between them, it will accept > anything between them and register a hit. > > > Mike "that's just semantics... not it's not... yes it is..." Yetto Yeah, a minute or two after I posted that I realized something was missing. And yes, by "ignore" I did mean to say "not care." Thank you. I can see now that your regexp works better than I had anticipated.
Technical Details
Message-ID:
<Xns9C847453FF3CChahadotdotdot@74.209.136.95>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!transit4.hitnews.eu!feeder3.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.246.MISMATCH!nx02.iad01.newshosting.com!newshosting.com!69.16.185.16.MISMATCH!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!spln!extra.newsguy.com!newsp.newsguy.com!news3References:
<Xns9C7ECBDA4BECAammammatatiscalineti@194.177.97.96> <Xns9C7ECF92E972Chahadotdotdot@74.209.136.98> <Xns9C818F65AE920emteedee@87.106.137.111> <Xns9C81395E0DB70hahadotdotdot@74.209.136.94> <Xns9C8378CF1712Aemteedee@87.106.137.111> <Xns9C836157A806Chahadotdotdot@74.209.136.81> <Xns9C84D8825B0B9emteedee@87.106.137.111> <Xns9C844E800540Fhahadotdotdot@74.209.136.98> <slrn20090912100732.373.twooffive@may.eternal-september.org>Show Full Headers
Complete Article Headers
Message-ID: <Xns9C847453FF3CChahadotdotdot@74.209.136.95> Subject: Re: [xnews] \b use Date: Sat, 12 Sep 2009 15:26:12 +0000 From: JimH <nvm@nunya.biz> References: <Xns9C7ECBDA4BECAammammatatiscalineti@194.177.97.96> <Xns9C7ECF92E972Chahadotdotdot@74.209.136.98> <Xns9C818F65AE920emteedee@87.106.137.111> <Xns9C81395E0DB70hahadotdotdot@74.209.136.94> <Xns9C8378CF1712Aemteedee@87.106.137.111> <Xns9C836157A806Chahadotdotdot@74.209.136.81> <Xns9C84D8825B0B9emteedee@87.106.137.111> <Xns9C844E800540Fhahadotdotdot@74.209.136.98> <slrn20090912100732.373.twooffive@may.eternal-september.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!transit4.hitnews.eu!feeder3.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.246.MISMATCH!nx02.iad01.newshosting.com!newshosting.com!69.16.185.16.MISMATCH!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!spln!extra.newsguy.com!newsp.newsguy.com!news3 Newsgroups: news.software.readers Organization: NewsGuy - Unlimited Usenet $19.95 Lines: 46 NNTP-Posting-Host: pc1d44adecdaf0e64f5517c8d5ba4e4b15b0fe48404b8fa49.newsdawg.com User-Agent: Xnews/5.04.25