regex_replace usage

Options

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

Tagged:

Best Answer

  • dorian
    dorian Member
    Answer ✓
    Options

    Found my answer here and got it working.

    https://docs.xano.com/working-with-data/data-type-filters/text-filter#regex_replace

Answers