in reply to Re^3: Alpha number sort (two truer to spec)
in thread Alpha number sort
Rate gam3 tye
gam3 243/s -- -69%
tye 772/s 218% --
The regex still had one bug: you need a \d in the backtrace to keep it from matching 2.11. on 2.1/1.
I would never have thought of using s///g in place of my while loop.qr/((?<!\.)(\d+)\.\d+(?![\.\d])|\d+)/
|
|---|