FAQ: How can I remove extended ASCII characters from a string?

Q. Some of my exported records contain diacritics, such as Malmö, or punctuation, such as an ellipsis (…). The destination app doesn’t allow encoding for these characters, so I’m interested in simply removing them. Is there a way to replace all such instances?

A. The following handlebars function removes any character from the variable City that is not a digit, a space character, or a letter in the English alphabet:

{{regexReplace City '' '([^0-9a-zA-Z\ ]+)' 'ig'}}

For more information, see regexReplace.

0

Comments

0 comments

Please sign in to leave a comment.

 

Didn't find what you were looking for?

New post