🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #152969

Re: [Xnews] regex help, please

#152969
From: »Q«
Date: Tue, 03 Aug 2004 21:55
23 lines
1816 bytes
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

-- 
»Q«
Technical Details
Message-ID: <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
References: <Xns953AAF8104F14metadyataminvalid@netnews.worldnet.att.net>

Show Full Headers
Complete Article Headers
Message-ID: <MrQ953AAC2F684FDitsmeitsQ@QsFQDN.dyndns.org>
Subject: Re: [Xnews] regex help, please
Date: Tue, 03 Aug 2004 21:55:36 GMT
From: »Q« <boxcars@gmx.net>
References: <Xns953AAF8104F14metadyataminvalid@netnews.worldnet.att.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-mail
Newsgroups: news.software.readers
Organization: we don't need no stinkin' organization
Lines: 23
X-Trace: news.uni-berlin.de jFpA5XCnnVG8WDQAxtOz0Acqn1D9ucGbVxQQhPd24bKIo49n/H
X-Orig-X-Complaints-To: <http://www.cybergecko.com/complain.htm>
X-Face: *#`F(_&o, GRH~~$V&ByU1LZAWc]JgxuT`Pv2y0`&JE`(=*PcC>#m2]xv]p,
 i|9mDJ+8dGMJl`V[!z]\N}qrLTHjU]Sew>rQBShT_8.(0Q(iH,
 Gu7k|y/)^!@oVydVrix*#|-|u2~zgA'U3nQ_fa#jXvcGL[9f:>8?U=hXYK3D~*}Gq$TjPe1WXEFLGTiB3ot!oMH"'(Jop0(\0C