On Aug 13, Janek Schleicher said:

>Laddo wrote at Tue, 13 Aug 2002 06:31:24 +0200:
>
>> var/backup/usersA2F.0.1_1027468994_24
>>
>> i want a regular expression that can find only the third part i.e only
>>  usersA2F.0.1_1027468994_24
>
>Of course, you can also use a regexp:
>m:/(.*?)$/

That regex should read m:/(.*?)$:, but it's still broken.  The .*? doesn't
mean "match the shortest chunk possible", just "TRY matching as little as
possible".  The regex will match "backup/users...".

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **
<stu> what does y/// stand for?  <tenderpuss> why, yansliterate of course.
[  I'm looking for programming work.  If you like my work, let me know.  ]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to