in reply to Re: Regx Question
in thread Regx Question

Hey mkmcconn , it works fine but when the path get longer it doesn't ,, I am trying to caputure the last one before \final no matter how big is the path and delete it ,, I am trying to modify it here hopefully , I will get it .. thanks

Replies are listed 'Best First'.
Re: Regx Question
by Abigail-II (Bishop) on Jul 31, 2002 at 11:05 UTC
    my @chunks = split /\\/ => $data; splice @chunks => -2, 1 if $chunks [-1] eq 'final'; $data = join "\\" => @chunks;
    Abigail
      What is your rule of thumb for using => instead of , in argument lists?

      laughingboy

        => separates arguments with different types/roles.

        Abigail