🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
14 messages
14 total messages Started by me Tue, 03 Aug 2004 21:15
[Xnews] regex help, please
#152968
Author: me
Date: Tue, 03 Aug 2004 21:15
19 lines
1377 bytes
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.

TIA

J
-- 
Replies to: Njk04s_130_p(at)Ojuno(dot)Tcom
Re: [Xnews] regex help, please
#152969
Author: »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«
Re: [Xnews] regex help, please
#152975
Author: Mike Yetto
Date: Wed, 04 Aug 2004 01:06
33 lines
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 
Re: [Xnews] regex help, please
#152977
Author: me
Date: Wed, 04 Aug 2004 02:41
34 lines
1957 bytes
»Q« <boxcars@gmx.net> wrote in
»news:MrQ953AAC2F684FDitsmeitsQ@QsFQDN.dyndns.org: 

> 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
> 

Much obliged.

Actually, I did read it. < red face > Now I have figure out when 
I am (not) "inside  a  character  class" < /red face >

J
-- 
Replies to: Njk04s_130_p(at)Ojuno(dot)Tcom
Re: [Xnews] regex help, please
#152978
Author: me
Date: Wed, 04 Aug 2004 02:43
16 lines
1420 bytes
Mike Yetto <myetto1@nycap.invalid> wrote in 
news:Xns953AD6BAA9B1Buniquelyme@individual.net:

> And for extra credit there's
> <URI:http://common-list.net/mailman/listinfo/regex-coach>
> 
>          Mike "pop quiz in the morning" Yetto
> 

Mike,

common-list.et doesn't resolve. :(

J
-- 
Replies to: Njk04s_130_p(at)Ojuno(dot)Tcom
Re: [Xnews] regex help, please
#152979
Author: Guy
Date: Wed, 04 Aug 2004 02:55
30 lines
2200 bytes
»Q« wrote:

> 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
> 

Matches
"whats the word?"

-- 
Regards,
Guy

Xnews "XP" Icon Patcher Files
<http://xnews-icon-patchers.bebto.com/patcher.html>
Re: [Xnews] regex help, please
#152982
Author: »Q«
Date: Wed, 04 Aug 2004 03:13
24 lines
1961 bytes
me@tadyatam.invalid wrote in
<news:Xns953AE721F8E65metadyataminvalid@netnews.worldnet.att.net>:

> Mike Yetto <myetto1@nycap.invalid> wrote in
> news:Xns953AD6BAA9B1Buniquelyme@individual.net:
>
>> And for extra credit there's
>> <URI:http://common-list.net/mailman/listinfo/regex-coach>
                         ^
>>          Mike "pop quiz in the morning" Yetto
>
> Mike,
>
> common-list.et doesn't resolve. :(
            ^ ^

<http://common-lisp.net/mailman/listinfo/regex-coach>
                  ^ ^

You may want The Regex Coach itself first.
<http://www.weitz.de/regex-coach/>

-- 
»Q«
Re: [Xnews] regex help, please
#152983
Author: me
Date: Wed, 04 Aug 2004 03:25
16 lines
1521 bytes
»Q« <boxcars@gmx.net> wrote in 
news:MrQ953AE226B935itsmeitsQ@QsFQDN.dyndns.org:

> 
> <http://common-lisp.net/mailman/listinfo/regex-coach>
>                   ^ ^
> 
> You may want The Regex Coach itself first.
> <http://www.weitz.de/regex-coach/>
> 

Thanks, got it (both).

J
-- 
Replies to: Njk04s_130_p(at)Ojuno(dot)Tcom
Re: [Xnews] regex help, please
#152995
Author: Mike Yetto
Date: Wed, 04 Aug 2004 15:50
26 lines
2011 bytes
While talking to the fat hobbitses  said...

> Mike Yetto <myetto1@nycap.invalid> wrote in 
> news:Xns953AD6BAA9B1Buniquelyme@individual.net:
> 
>> And for extra credit there's
>> <URI:http://common-list.net/mailman/listinfo/regex-coach>
>> 
>>          Mike "pop quiz in the morning" Yetto
>> 
> 
> Mike,
> 
> common-list.et doesn't resolve. :(
> 

That was from the "About" selection and might be out of date.  Try 
this:
<URI:http://www.weitz.de/regex-coach/>

   Mike "pay no attention to the man behind the curtain" 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 
Re: [Xnews] regex help, please
#152999
Author: me
Date: Wed, 04 Aug 2004 17:14
30 lines
1964 bytes
Mike Yetto <myetto1@nycap.invalid> wrote in
news:Xns953B7871BAC7Duniquelyme@individual.net: 

> While talking to the fat hobbitses  said...
> 
>> Mike Yetto <myetto1@nycap.invalid> wrote in 
>> news:Xns953AD6BAA9B1Buniquelyme@individual.net:
>> 
>>> And for extra credit there's
>>> <URI:http://common-list.net/mailman/listinfo/regex-coach>
>>> 
>>>          Mike "pop quiz in the morning" Yetto
>>> 
>> 
>> Mike,
>> 
>> common-list.et doesn't resolve. :(
>> 
> 
> That was from the "About" selection and might be out of
> date.  Try this:
> <URI:http://www.weitz.de/regex-coach/>
> 
>    Mike "pay no attention to the man behind the curtain"
>    Yetto 
Thanks Mike. All's well -- »Q« corrected the link(s).

J
-- 
Replies to: Njk04s_130_p(at)Ojuno(dot)Tcom
Re: [Xnews] regex help, please
#153002
Author: fLameDogg
Date: Wed, 04 Aug 2004 19:04
17 lines
1696 bytes
me@tadyatam.invalid wrote in 
news:Xns953AE6CF1578metadyataminvalid@netnews.worldnet.att.net:

> Actually, I did read it. < red face > Now I have figure out when 
> I am (not) "inside  a  character  class" < /red face >

That's easy.

[I am a sentence in a character class.]

I am not a sentence in a character class.

...according to pcre.html, anyway.

-- 
fD
Recently inspired reader
Re: [Xnews] regex help, please
#153003
Author: me
Date: Wed, 04 Aug 2004 19:55
25 lines
1736 bytes
fLameDogg <flamedogg@operamail.com> wrote in
news:Xns953B8F1988654imamidnighttoken@130.133.1.4: 

> me@tadyatam.invalid wrote in 
> news:Xns953AE6CF1578metadyataminvalid@netnews.worldnet.att.n
> et: 
> 
>> Actually, I did read it. < red face > Now I have figure
>> out when I am (not) "inside  a  character  class" < /red
>> face > 
> 
> That's easy.
> 
> [I am a sentence in a character class.]
> 
> I am not a sentence in a character class.
> 
> ...according to pcre.html, anyway.
> 

OK, OK, I got it (do rub it in)! ;-)))

J
-- 
Replies to: Njk04s_130_p(at)Ojuno(dot)Tcom
Re: [Xnews] regex help, please
#153004
Author: me
Date: Wed, 04 Aug 2004 20:03
39 lines
2117 bytes
Guy <Use-Reply-To-Address-Header@[127.1]> wrote in
news:953ADEF633D1A2E284CEEC009E394A9D7@127.0.0.1: 

>»Q« wrote:
> 
>> me@tadyatam.invalid wrote in
>> <news:Xns953AAF8104F14metadyataminvalid@netnews.worldnet.at
>> t.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
>> 
> 
> Matches
> "whats the word?"
> 

Hiya,

If you asking me, the word is "update." Some NG's overflow with 
a la "update your blahblah." The blahblah could be an OK stuff 
but the posts borderline w/ spam.

J
-- 
Replies to: Njk04s_130_p(at)Ojuno(dot)Tcom
Re: [Xnews] regex help, please
#153008
Author: Mike Yetto
Date: Wed, 04 Aug 2004 20:45
12 lines
1658 bytes
While talking to the fat hobbitses fLameDogg said...

> I am not a classy character in this sentence.

fLameDogg displays rare introspection on Usenet.

    	Mike "film at eleven" 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 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads