Why does Regex Advanced sometimes replace text “too carefully”?

Because regex replacement can corrupt data silently.

Regex Advanced goes out of its way to avoid overlapping replacements.Example

Find: AB
Replace: ABC

Naive replacement (no safeguards):

ABC → ABCC

What went wrong?

  • The replacement text (ABC) starts with the find text (AB)

  • After the first replacement, the engine sees AB again inside the newly inserted text

  • It replaces again, unintentionally growing the string

To prevent this, the node uses lookahead logic in certain cases.

This feels conservative
But it prevents subtle data inflation bugs that are nearly impossible to detect later.