in reply to Pattern match from the end of string?

Use the $ anchor instead of the ^ anchor:
/(\d+)$/

perlrequick

Replies are listed 'Best First'.
Re^2: Pattern match from the end of string?
by Anonymous Monk on Oct 19, 2016 at 13:06 UTC
    Great, many thanks to both !