🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #152194

Re: [OT] Help with regex please

#152194
From: Tech Zero
Date: Wed, 21 Jul 2004 07:22
46 lines
2230 bytes
The voice of "Mozzy" drifted in on the cyber-winds, 
from the sea of virtual chaos...

> I am trying to match a string like these file names:
> 
>            109006310240F90AFE3D10Fjpg
>            109022208940FB7809F1BBBjpg
> 
> where there are any 23 characters followed by "jpg".  Strangely 
> enough there is no dot before the "jpg" at the end of the file 
> name.
 <snip>
> What regex should I use to match those file names?


Unlike "Binky" & "Murry", I quite certain you're using a hacked version 
of Xnews, so the following would work:

    \w{23}\.jpg\b

That's also assuming you mean any file with 23 random characters with a 
"jpg" extension.


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.

>    \$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...

-- 
The Tech Zero, Maxx "What's That Score" Pollare...
Technical Details
Message-ID: <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!in.100proofnews.com!in.100proofnews.com!fu-berlin.de!uni-berlin.de!not-for-mail
References: <952C722D5471651A7E@130.133.1.4>

Show Full Headers
Complete Article Headers
Message-ID: <Xns952DE01A56C2ZeroOne@news.individual.net>
Subject: Re: [OT] Help with regex please
Date: Wed, 21 Jul 2004 07:22:36 +0000
From: Tech Zero <july-spamail@dragonfur.ca>
References: <952C722D5471651A7E@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!in.100proofnews.com!in.100proofnews.com!fu-berlin.de!uni-berlin.de!not-for-mail
Newsgroups: news.software.readers
Lines: 46
X-Trace: news.uni-berlin.de x3XlqrRmIqOzLBYwIMZm3wiSbBWd9iYmTE/qn7C6IkdO3qEjps
User-Agent: Xnews/06.01.10
X-No-Archive: yes
X-Face: }2a:86~fids1(+)NSk]$?SqH(7<%l,URI]qy%%.4O]rYF&7aeXt,vC%i`TGlSWHr&v]amN[1^X"p0$?&3`az-l>nq\y5}ADu+TJ%\{[)`H"X}yx`zpMe^V*JyI~)WcA-6Mb#Qh>}?{cyxK!"G\#"I5&H\FrFy[c9usZ<#'"nvV[;
 34_qR9](uXc,NLS?JRGg/.&1=