Table of Contents
- Quick Take
- Clashing replacement values
- Give deletion precedence with a null replacement
- Require the global flag so every match can be collected safely
- Slice the source text using the returned ranges
- Merge adjacent regex matches into one range
- Nothing was found
- Replacing values
- Advance over a complete Unicode code point after an empty match
- Turn zero-width matches into insertion ranges