Article View: news.software.readers
Article #152197Re: [OT] Help with regex please
From: Mozzy
Date: Wed, 21 Jul 2004 09:19
Date: Wed, 21 Jul 2004 09:19
20 lines
1485 bytes
1485 bytes
Rom <reply@group.invalid> wrote: >> 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. > >> What regex should I use to match those file names? > > Until someone more knowledgable comes along, try this: > > ^(?>.*)(?<=jpg) Yikes! I am bamboozled by that expression. Can anyone explain the essence of it as I am intrigued.
Technical Details
Message-ID:
<952D6911A994E51A7E@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!news-lei1.dfn.de!news1.uni-leipzig.de!fu-berlin.de!uni-berlin.de!not-for-mailReferences:
<952C722D5471651A7E@130.133.1.4> <td0qf0tav2j798132iflsjcrgfo7dj4jng@news20.forteinc.com>Show Full Headers
Complete Article Headers
Message-ID: <952D6911A994E51A7E@130.133.1.4> Subject: Re: [OT] Help with regex please Date: Wed, 21 Jul 2004 10:19:43 +0100 From: Mozzy <dem_d@mail.com> References: <952C722D5471651A7E@130.133.1.4> <td0qf0tav2j798132iflsjcrgfo7dj4jng@news20.forteinc.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!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news1.uni-leipzig.de!fu-berlin.de!uni-berlin.de!not-for-mail Newsgroups: news.software.readers Lines: 20 X-Trace: news.uni-berlin.de TEuGZSk1jQ+HNnpGQXrY5A9OszfNoRWAZof9b35lq24FL0SJqP News-Agent: OE 6.00.2800 X-No-Archive: yes