🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #235447

Re: [xnews] Another \b question

#235447
From: Ted S.
Date: Sun, 13 Sep 2009 02:57
18 lines
1753 bytes
On 13 Sep 2009 01:03:01 GMT, JimH wrote:

> Now it matches only the word "and" on lines 2 and 4, but not the "&"
> in lines 1 and 3. Why? 
> 
> What change do I need to make?

Have you tried escaping the ampersand:

\b(and|\&)\b

I can't remember whether the & is one of the characters that needs to be
escaped with a backslash.

-- 
Ted S.
fedya at hughes dot net
Now blogging at http://justacineast.blogspot.com
Technical Details
Message-ID: <7f8nwk1t23oo$.dlg@justacineast.motzarella.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!border2.nntp.ams.giganews.com!nntp.giganews.com!news.musoftware.de!wum.musoftware.de!news.albasani.net!not-for-mail
References: <Xns9C84D62037159hahadotdotdot@74.209.136.99>

Show Full Headers
Complete Article Headers
Message-ID: <7f8nwk1t23oo$.dlg@justacineast.motzarella.org>
Subject: Re: [xnews] Another \b question
Date: Sat, 12 Sep 2009 22:57:57 -0400
From: "Ted S." <fedya@hughes.spam>
References: <Xns9C84D62037159hahadotdotdot@74.209.136.99>
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!border2.nntp.ams.giganews.com!nntp.giganews.com!news.musoftware.de!wum.musoftware.de!news.albasani.net!not-for-mail
Newsgroups: news.software.readers
Organization: albasani.net
Lines: 18
Reply-To: fedya@hughes.net
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: news.albasani.net
 /JwtOtOtZlZH6sDELdOk9qYubKL0lVWOLJ+WkL2YpXE/yjATK/cDp4skGZ/Lf6fUiRnJCraPYoeNoglYu1q4/euhijZTiTIdZmDIggo00vBYz8o+D1WjCZkpLHSDB/sv
X-Complaints-To: abuse@albasani.net
NNTP-Posting-Date: Sun, 13 Sep 2009 03:00:59 +0000 (UTC)
X-User-ID: XG0uhrLdhOVXAvuU3sUW4+zWJA7OI9cRYM169s2svU8=
Cancel-Lock: sha1:310GNCUTPrBK/bWCHFT3TgYEXvo=
User-Agent: 40tude_Dialog/2.0.15.1 Hamster/2.1.0.11
X-NNTP-Posting-Host: E0lx1K5MY7gRX/5YIEUXJQbmElf4luNdNv37d5AwsSk=
X-Original-Bytes: 1523