3 ms·
If you need something fast but not necessarily 100% correct, such as for a real-time code syntax highlighter in JavaScript, RegEx is fine.
by jacobr 14y ago
If you need something fast but not necessarily 100% correct, such as for a real-time code syntax highlighter in JavaScript, RegEx is fine.