Re: Extracting part of strings?

From: Jürgen Exner (jurgenex_at_hotmail.com)
Date: 12/15/04


Date: Wed, 15 Dec 2004 15:57:39 GMT

Arndt Jonasson wrote:
> Karlo Lozovina <_karlo_@_mosor.net_> writes:
>> "Jürgen Exner" <jurgenex@hotmail.com> wrote in
>> news:ivYvd.7200$E_6.6229@trnddc04:
>>
>>> Yep, there is. The perlish way of doing it would be to use the
>>> function basename() from the module File::Basename. Further
>>> information see 'perldoc File::Basename'.
>>
>> Wow, wish I knew that an hour ago :). Thanks a lot, this will make my
>> life lot easier :).
>
> For doing it with only Perl primitives, look up 'map' and regular
> expressions.

Would be interesting to see how you parse file paths in a portable way using
only REs....

jue



Relevant Pages

  • Re: Extracting part of strings?
    ... The perlish way of doing it would be to use the ... For doing it with only Perl primitives, look up 'map' and regular ... expressions. ...
    (comp.lang.perl.misc)
  • Re: Regualar Expression Theory
    ... Alan Turing 1950 ... > Model of Computation and Formal Languages, Oxford University Press, ... Are these references related to regular expressions? ...
    (comp.unix.shell)
  • Re: Regular expressions for replacements in Excel?
    ... The Word wildcards seem to be much more limited than real regular ... expressions, so I had already eliminated that option. ... or not it ended in the slash that I intended to require. ... since I think that one of the later transformations is ...
    (microsoft.public.excel.programming)
  • Re: Regular expressions for replacements in Excel?
    ... The Word wildcards seem to be much more limited than real regular ... expressions, so I had already eliminated that option. ... or not it ended in the slash that I intended to require. ... since I think that one of the later transformations is ...
    (microsoft.public.word.vba.beginners)
  • Re: preg_match() oddities and question
    ... Or are you saying that there is no way to use regular ... expressions to catch the examples I gave? ... If your task is small enough and clean ... The incoming data, however, is almost always going to ...
    (comp.lang.php)