Y
Hacker News
new
|
ask
|
show
|
jobs
by
dedward
5625 days ago
This would be highly dependent on the implementation of the regex engine itself, would it not?
1 comments
bmm6o
5625 days ago
Right. 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.
link