in reply to Re^2: Regex to extract last 3 components of filename
in thread Regex to extract last 3 components of filename

This node falls below the community's minimum standard of quality and will not be displayed.
  • Comment on Reaped: Re^3: Regex to extract last 3 components of filename

Replies are listed 'Best First'.
Re^4: Regex to extract last 3 components of filename
by haukex (Archbishop) on May 05, 2021 at 17:00 UTC
    Lift it out and adapt it to your own code.

    File::Spec is a core module. "Copy and paste some code out of a CPAN module" is a last resort at best.

    Also be aware of the many goodies in Regexp::Common.

    Regexp::Common does not handle filename manipulations.