Article View: news.software.readers
Article #152975Re: [Xnews] regex help, please
From: Mike Yetto
Date: Wed, 04 Aug 2004 01:06
Date: Wed, 04 Aug 2004 01:06
33 lines
2197 bytes
2197 bytes
While talking to the fat hobbitses ยปQยซ said...
> me@tadyatam.invalid wrote in
> <news:Xns953AAF8104F14metadyataminvalid@netnews.worldnet.att.net>:
>
>> Me stuck. I'm trying to match a specific word with optional "s"
>> at the end. Using the word "word" as an example, I would like to
>> match
>> word
>> words
>> but not
>> sword
>> wordsmith.
>>
>> BTW, a word here is something that is at the start of a line or
>> is preceeded by a space, and is followed by either a space or a
>> newline. Punctuation doesn't matter; it's OK to miss ",words"
>> "word." "(word)" etc.
>
> You should read through pcre.html, in your Xnews directory.
>
> \bwords?\b
>
And for extra credit there's
<URI:http://common-list.net/mailman/listinfo/regex-coach>
Mike "pop quiz in the morning" Yetto
--
"There is danger from all men. The only maxim of a free
government ought to be to trust no man living with power to
endanger the public liberty."
- John Adams
Technical Details
Message-ID:
<Xns953AD6BAA9B1Buniquelyme@individual.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!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news1.uni-leipzig.de!fu-berlin.de!uni-berlin.de!not-for-mailReferences:
<Xns953AAF8104F14metadyataminvalid@netnews.worldnet.att.net> <MrQ953AAC2F684FDitsmeitsQ@QsFQDN.dyndns.org>Show Full Headers
Complete Article Headers
Message-ID: <Xns953AD6BAA9B1Buniquelyme@individual.net>
Subject: Re: [Xnews] regex help, please
Date: Tue, 03 Aug 2004 21:06:31 -0400
From: Mike Yetto <myetto1@nycap.invalid>
References: <Xns953AAF8104F14metadyataminvalid@netnews.worldnet.att.net> <MrQ953AAC2F684FDitsmeitsQ@QsFQDN.dyndns.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!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news1.uni-leipzig.de!fu-berlin.de!uni-berlin.de!not-for-mail
Newsgroups: news.software.readers
Organization: None at all
Lines: 33
X-Trace: news.uni-berlin.de 4P6+SOGnbZ5tOt6NgvGQhAl7s7GZZjOpff5UMcdeoGqiTi5byV
User-Agent: Xnews/06.08.25
X-Face: |r>RlUD1uaj^+}lH:1x}DRPEVBE10?q; 6kK-z/g54Sm5un@|e'd;
MBx>,mw4U_J{:@+2{^77p/rY\g%7gE$V,}ZT?e>5tttHXeodYk\'q1Jv5R1Y@297IYtjygnnPfR4'8>3c:<<bJtx#[<5rd-UP_F?\?j>[5:.5ViK#8o+?^D{hi=c0]5Z=6d,|`tq_:(C1(1`@FbN)Cj(]D*}z[o"<~cu!|Is\2(e#[-Fjeg_M7PS/@LG