Excluding symbols ()><:;.,etc. from title and slugs

Hi all,

How we can exclude symbols and other-than-english english characters from our titles and eventually slugs?


Sure, using a Regular Expression should help you achieve this. It might involve some trial and error. But you can use Find & Replace with Regex:

You could use this expression: [^a-zA-Z0-9 ]

1 Like

Thanks for the sharings!

Marking “check” the Use a regex pattern and adding “[^a-zA-Z0-9 ]” expression will recognize the non-english characters and latters and will substitute with english letters? Even all three brackets, example åöäćđž, arabic, etc? How we can only save value in characters as you mentioned partly in the regex pattern from a to z and from 0 to 9?

Thanks! :smiley:

Trail and error :smile:. I use this website to create REGEX: https://regex-generator.olafneumann.org/

1 Like

Okay, have started to learn more about Regex. If someone knows here a solution, how we can use Regex to have only english letters (a-z) and numbers (0-9), thanks.

Additionally, how regex work, does regex substiture letters out-side of english to similar letters?

Example for “å” to be “a”, or for “č” to be “c”?