Article View: news.software.readers
Article #152195Re: [OT] Help with regex please
From: Mozzy
Date: Wed, 21 Jul 2004 09:17
Date: Wed, 21 Jul 2004 09:17
45 lines
2007 bytes
2007 bytes
Tech Zero <july-spamail@dragonfur.ca> wrote:
> Unlike "Binky" & "Murry", I quite certain you're using a
> hacked version of Xnews, so the following would work:
>
> \w{23}\.jpg\b
Not clear about why you say (a) it is hacked or (b) why the regex
you give would presumably work with a hacked version but not a non-
hacked version.
> That's also assuming you mean any file with 23 random
> characters with a "jpg" extension.
>
Yes.
>
> As for the other "demo" Regex strings...
>
>> jpg = jpg anywhere
>
> Will capturer any word with those three characters, so it's
> not accurate.
>
>> jpg$ = jpg at end of string
>
> There is often a spaces after the file names on most Usenet
> spam, so this won't work ether.
Interesting point. Aren't the trailing spaces stripped out by
either the newsreader or the operating system?
>
>> \$jpg = jpg at end of string
>
> Never seen before; it's not PCRE, so it doesn't work in Xnews.
>
>> \Zjpg = jpg at end of name
>
> Again, it's not PCRE...
Does PCRE = "proper 'C' regeular expression" ?
Technical Details
Message-ID:
<952D689E8A99651A7E@130.133.1.4>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!newsfeed.freenet.de!news-feed1.de1.concert.net!fu-berlin.de!uni-berlin.de!not-for-mailReferences:
<952C722D5471651A7E@130.133.1.4> <Xns952DE01A56C2ZeroOne@news.individual.net>Show Full Headers
Complete Article Headers
Message-ID: <952D689E8A99651A7E@130.133.1.4> Subject: Re: [OT] Help with regex please Date: Wed, 21 Jul 2004 10:17:04 +0100 From: Mozzy <dem_d@mail.com> References: <952C722D5471651A7E@130.133.1.4> <Xns952DE01A56C2ZeroOne@news.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!newsfeed.freenet.de!news-feed1.de1.concert.net!fu-berlin.de!uni-berlin.de!not-for-mail Newsgroups: news.software.readers Lines: 45 X-Trace: news.uni-berlin.de 0FlPMujtwHzT8tNJzFbH4QAgFTeooqkY8Wg0HDhLQDkOlHPg7U News-Agent: OE 6.00.2800 X-No-Archive: yes