๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #152122

Re: [OT] Help with regex please

#152122
From: MLC
Date: Tue, 20 Jul 2004 12:38
35 lines
2200 bytes
martedรฌ 20/lug/2004 _Mozzy_ in <news:952C722D5471651A7E@130.133.1.4>:

> 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.
> 
> I have used this regex test page but I can't seem to get any regex 
> to work!   http://www.fileformat.info/tool/regex.htm
> 
> Among others I have tried these
> 
>     jpg   =  jpg anywhere
>     jpg$  =  jpg at end of string
>     \$jpg =  jpg at end of string
>     \Zjpg =  jpg at end of name
> 
> Why don't these work? 

That page doesn't work for me either. :-/
 
> 
> What regex should I use to match those file names?

^\w{23}jpg

this works here in Dialog's regex tester with your strings.

HTH
-- 
Maria Luisa C - 20/07/2004 13.44.11
Technical Details
Message-ID: <nf2ofcd9dmkx$.dlg@ID-187316.user.uni-berlin.de>
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.sjc.giganews.com!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!news-ber1.dfn.de!fu-berlin.de!uni-berlin.de!not-for-mail
References: <952C722D5471651A7E@130.133.1.4>

Show Full Headers
Complete Article Headers
Message-ID: <nf2ofcd9dmkx$.dlg@ID-187316.user.uni-berlin.de>
Subject: Re: [OT] Help with regex please
Date: Tue, 20 Jul 2004 14:38:31 +0200
From: MLC <maluc52@yahoo.it>
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.sjc.giganews.com!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!news-ber1.dfn.de!fu-berlin.de!uni-berlin.de!not-for-mail
Newsgroups: news.software.readers
Organization: none
Lines: 35
Reply-To: mlcald@msn.com
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de z11ApS52KL3dNHPzM//tcAZm01JmHA5SdVUqDN25Xl3q+OeaIz
User-Agent: 40tude_Dialog/2.0.12.1it (282be1b6.8.479)
X-Coord: Lat 44.317, Long 11.417
X-face: '4\%,O5x).F~gp\lJim~>rQ@ggNl=ucLRL~UFiRN5ADNs%v(0;
 [D{/K6Wm)'@}f*4k8)<.q
 :h+}\Rt\w|`K#U,C,T7d*\zA@VT{7BZ_3x'r5R#Q]H_Jzn~|AcJ{6C>BTbilCDO
X-URL: http://fido.altervista.org/index.php