## Lesson — Constructing a single regular expression with alternation

**Tags:** typescript, performance, regex

Constructing a single regular expression with alternation is more efficient than iterating over an array to perform multiple string replacements. This approach scales better and improves maintainability as the list of patterns to remove grows.
