Article View: news.software.readers
Article #235443Re: [xnews] \b use
From: Mike Yetto
Date: Sat, 12 Sep 2009 14:16
Date: Sat, 12 Sep 2009 14:16
39 lines
3073 bytes
3073 bytes
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 -- Pluralitas non est ponenda sine necessitate. - William of Ockham
Technical Details
Message-ID:
<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!feeder.erje.net!feeder.eternal-september.org!eternal-september.org!news.eternal-september.org!not-for-mailReferences:
<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>Show Full Headers
Complete Article Headers
Message-ID: <slrn20090912100732.373.twooffive@may.eternal-september.org>
Subject: Re: [xnews] \b use
Date: Sat, 12 Sep 2009 10:16:00 -0400
From: Mike Yetto <myetto1@nycap.invalid>
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>
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!feeder.erje.net!feeder.eternal-september.org!eternal-september.org!news.eternal-september.org!not-for-mail
Newsgroups: news.software.readers
Organization: slrn Mafia / Xnews Tong (emeritus)
Lines: 39
X-Trace: news.eternal-september.org
U2FsdGVkX1/sTAy3sikwo3oQfDhSMKDD07dM9R0EWTtfYoY5Lka+j+j1dmRh8BzhcEQbGCqV7aViyRSv7o52BtzLJmcUjxuhlP0RhimXS7dDj+WoFxAMjfsi7ID6tNAR7U+TWh83HxQ=
X-Complaints-To: abuse@eternal-september.org
NNTP-Posting-Date: Sat, 12 Sep 2009 14:22:56 +0000 (UTC)
X-Auth-Sender: U2FsdGVkX18IXZ1ECcVhHCu0wjenp/ShvNZb0GhvKus=
X-No-Bananas: Yes
X-Face: }3JWz.qUmO(s6)fi^Y)1eP$!$:`/OCi6lO:7>\e0SB{-VT^+J5DWXfTybc>y~aVli{wXD
m/.j\Al('YgA3HNrxK-oL@; 2*[QCBW/p"j'~oe7H~MG'=-W<y-rh8h2TY3\Iq*U\4Z97!Y6f)pxHQ
H,
Cancel-Lock: sha1:bjsl3PrN7bAdZqbJ0LqnIUCqdkU=
sha1:vX4s7+RsU/O99cZuTFt/4VE7R84=
User-Agent: slrn/pre1.0.0-11/co (Kubuntu 9.04)
X-The-Usenet-Improvement-Project: http://twovoyagers.com/improve-usenet.org/