JS RegExp, Fast and Slow
The V8 JavaScript engine uses Irregexp, one of the fastest RegExp engines around. However, to best leverage that power, JS developers still need to avoid certain pitfalls that are unfortunately neither obvious nor well-documented, and could waste precious runtime in RegExp builtin…