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$/);'
In reply to Re: How to consolidate regex's?
by samarzone
in thread How to consolidate regex's?
by BruceDB
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |