Skip to main content
Bobby234's user avatar
Bobby234's user avatar
Bobby234's user avatar
Bobby234
  • Member for 2 months
  • Last seen more than a month ago
awarded
revised
Loading…
revised
Loading…
revised
Loading…
awarded
Loading…
comment
Faster regex to match all worded numbers from 1 to 99
To detail it, yours is faster on PCRE2, but not with Javascript (test on jsfiddle might be useful)
comment
Faster regex to match all worded numbers from 1 to 99
I just tested it. Using the benchmark feature both mine and yours have a minimum of 32ms match time. Multiply the string magnitude if your machine is too fast. Despite yours having -20% steps than mine on PCRE2 flavour, i don't see a difference even with jsfiddle.
awarded
awarded
revised
Loading…
awarded
Loading…