Article View: news.software.readers
Article #235441Re: [xnews] \b use
From: JimH
Date: Sat, 12 Sep 2009 15:12
Date: Sat, 12 Sep 2009 15:12
43 lines
3000 bytes
3000 bytes
=?UTF-8?B?wrtRwqs=?= <boxcars@gmx.net> wrote in news:20090912090739.12529362@bellgrove.remarqs.net: > In <news:Xns9C844E800540Fhahadotdotdot@74.209.136.98>, > JimH <nvm@nunya.biz> wrote: > >> 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? >> >> \bfirst text\b\bsecond text\b > > No. \b\b matches the same things \b does > >> If not, any suggestions? >> >> (Basically, I'm looking to completely ignore anything between the two >> strings) > > stringone.*\b.*stringtwo > > .*\b.* matches any number of characters between the two strings as long > as there is at least one word boundary among them. > > FWIW, <http://xnews.remarqs.net/score.htm> has links to a few regular > expression sites I thought were useful. In particular, for learning > about them and playing with them, the last two links are great, the > tutorials and The Regex Coach. (The Regex Coach uses its own regex > engine, but it's designed to be Perl-compatible, so it mostly agrees > with Xnews' regexes.) I hadn't seen that page before, thank you. >From Googling I had found the last one, and it is very useful... but I'm afraid I've gotten all I can from it. That's not to say it doesn't have more to offer, just that for me it's not "sinking in." :)
Technical Details
Message-ID:
<Xns9C84720339BD1hahadotdotdot@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!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeeder.ewetel.de!newsfeed0.kamp.net!newsfeed.kamp.net!feeder.news-service.com!postnews.google.com!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!cyclone1.gnilink.net!gnilink.net!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> <20090912090739.12529362@bellgrove.remarqs.net>Show Full Headers
Complete Article Headers
Message-ID: <Xns9C84720339BD1hahadotdotdot@74.209.136.95> Subject: Re: [xnews] \b use Date: Sat, 12 Sep 2009 15:12:32 +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> <20090912090739.12529362@bellgrove.remarqs.net> 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!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeeder.ewetel.de!newsfeed0.kamp.net!newsfeed.kamp.net!feeder.news-service.com!postnews.google.com!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!cyclone1.gnilink.net!gnilink.net!spln!extra.newsguy.com!newsp.newsguy.com!news3 Newsgroups: news.software.readers Organization: NewsGuy - Unlimited Usenet $19.95 Lines: 43 NNTP-Posting-Host: p548b1376c9a4ff51b358b9ace579a48317f8185bc44f20d1.newsdawg.com User-Agent: Xnews/5.04.25