REGEXREPLACE
replaces regex matches with new text · from excel · excel: not yet compared · sheets: not yet compared
signature
REGEXREPLACE(text, pattern, replacement)
returns: text
| argument | required |
|---|---|
| text | required |
| pattern | required |
| replacement | required |
examples
formula and result, taken from the engine's own test suite — every result below is asserted in CI, not written by hand.
fx
=REGEXREPLACE("text", "text", "text") text