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+)/
In reply to Re^4: Alpha number sort (two truer to spec)
by gam3
in thread Alpha number sort
by gam3
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |