Comment on \d less efficient than [0-9]Comments−fleitz13yThe test code creates a new regex every time, would be interesting to see how it works with a compiled and reused regex.−joosters13yIt compiles it once and then matches it against 10000 strings.
Comments
The test code creates a new regex every time, would be interesting to see how it works with a compiled and reused regex.
It compiles it once and then matches it against 10000 strings.