Skip to main content
Question

Deleting what is matched in REGEX

  • March 11, 2025
  • 5 replies
  • 12 views

If I'm using the Mask function, and I've crafted a "Match Regex" to target what I want removed (not replaced), what is the "Replace Expression" to use to just delete it?(I want to delete what I've matched via regex)

5 replies

Jon Rust
Forum|alt.badge.img
  • Employee
  • March 11, 2025

`''`


  • Author
  • Known Participant
  • March 11, 2025

Thanks Jon


  • Author
  • Known Participant
  • March 11, 2025

<@ULBGHDPNY&gt;Any idea why my regex matches in http://regex101.com|regex101.com but the Mask function, that includes the same regex, doesn't remove the string?


  • Author
  • Known Participant
  • March 11, 2025

Nm, my team mate figured it out for me. I had a " in the regex where it wasn't needed.


Jon Rust
Forum|alt.badge.img
  • Employee
  • March 11, 2025

Nice. Also, be sure to check the ECMAScript option