4 ms·
This would be highly dependent on the implementation of the regex engine itself, would it not?
by dedward 16y ago
This would be highly dependent on the implementation of the regex engine itself, would it not?
- bmm6o 16y agoRight. The size of the difference will depend on the implementation details (e.g. if it uses backtracking or not), but the form the GP proposes will never be slower. And arguably it better captures the intent of the RE.