in reply to How to consolidate regex's?
I think using "^" will speed up things a bit (although a few nanoseconds won't make much difference) when compared to similar regex without "^".perl -e '$a = "1,234,340 views";print "$1\n" if($a =~ /^((?:\d{1,3})?( +?:,\d{3})*) views$/);'
|
|---|