Extracting only letters from text using RegEx

I’ve been trying to setup an “Extracting Matching Text” column, but I just can’t get it to work.
I’m trying to extract just letters from an input field using this regular expression [A-Za-z]+ however it just does not work, does anyone know what I’m missing?

Use the Java column, and paste this code:

return p1.replace(/[^\p{L}]/gu, '')

2 Likes

Thank you @Uzo :pray: - works like a charm

1 Like

You’re welcome… Java is the most powerful tool in glide.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.