regex_replace usage

Answered

I am trying to mask the first 5 numbers in a string in an API response. There may be non-number characters in this string too. I figure using the regex_replace filter is the correct approach? But can't figure out how to apply it in the UI. Chat GPT tells me that this regex will work - (?<= D|^) d{5} - but there are two fields in the UI - how do I set this up properly please? See Loom for further explanation.

Thanks.

https://www.loom.com/share/37afc1bf096647949e8150c179e07aed

5 replies