in reply to
Pattern match from the end of string?
Use the $ anchor instead of the ^ anchor:
/(\d+)$/
[download]
perlrequick
Comment on
Re: Pattern match from the end of string?
Download
Code
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 !
[reply]
In Section
Seekers of Perl Wisdom