in reply to
Re: Sorting records on a single field
in thread
Sorting records on a single field
If the number of interest is always at the end of the lines then a simple
/(\d+)$/
would do.
A combination of
rindex
and
substr
instead of the regex would probably be even faster.
See also
this reference work
for more pointers.
Comment on
Re^2: Sorting records on a single field
Select
or
Download
Code
In Section
Seekers of Perl Wisdom