in reply to Regex to extract last 3 components of filename
Because your regexp is greedy. See also Breaking file path into segments, perlretut.
Hope this helps!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex to extract last 3 components of filename
by Fletch (Bishop) on May 04, 2021 at 22:51 UTC |