Article View: news.software.readers
Article #152116[OT] Help with regex please
From: Mozzy
Date: Tue, 20 Jul 2004 10:13
Date: Tue, 20 Jul 2004 10:13
22 lines
1410 bytes
1410 bytes
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?
What regex should I use to match those file names?
Technical Details
Message-ID:
<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!feed2.newsreader.com!newsreader.com!news2.telebyte.nl!fu-berlin.de!uni-berlin.de!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <952C722D5471651A7E@130.133.1.4> Subject: [OT] Help with regex please Date: Tue, 20 Jul 2004 11:13:26 +0100 From: Mozzy <dem_d@mail.com> 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!feed2.newsreader.com!newsreader.com!news2.telebyte.nl!fu-berlin.de!uni-berlin.de!not-for-mail Newsgroups: news.software.readers Lines: 22 X-Trace: news.uni-berlin.de JTgtYYqjs3azXobXGnbswQHAtm/G678l5s6AXtTiwOrqOHzmJZ News-Agent: OE 6.00.2800 X-No-Archive: yes