Using Regex to replace special characters with US English alphabetical charactres

could you add an exception? for example if we want to use ()=+ or any symbol?
Would that be difficult

Hi @franck.marcheix , another recommendation, I do not know if it is possible, but it would be good that if this error occurs, it doesn’t cause the following actions to be cancelled. In summary, the idea is that if the error occurs, the subsequent actions can continue

Thanks!

Hello, can you tell me what causes this action.
what is it because of?
the fact that it returns a string of characters “no string of characters”?
Can you show me where the error occurs and under what circumstances?

Can you give me a specific example of what you want as an exception because I didn’t understand.
Give me some kind of demo
Thanks

It happens when the input is a dynamic value and the dynamic value is empty

for example I would like to have the + allowed by the plugin.
We have services like “haircut + beard” and when users are editing these services, the result is Haircut Beard. I would like it to be Haircurt + Beard.

So, it would be great to have some exceptions allowed. Maybe a list of symbols we define that will be allowed by the plugin

ok i. check that

A lot of people had asked me for this evolution and that’s why you now have a new plugin that allows you to escape the characters you want to keep.
REGEX CLEAN FILTER

the old plugin cannot be used?

No, unfortunately,
It was necessary to completely rethink the algorithm of the function and it would have been too complicated to integrate it on a function that is installed on almost 250 apps without taking the risk of blocking and breaking everything on apps deployed for a long time!
The easiest way to really provide a safe and functional plugin was to build a new one specifically for that purpose!
But it works perfectly for this need…

Ok, can you verif by update the plugin !
i fix the bug with empty string !
Good day

1 Like

Its working , thanks!

can you please add romanian diacritics too? ț â ă ș î

speaking of regex, I have been using the OpenAI Playground and giving it pretty specific prompts for what regex I should use in a certain scenario and it does a pretty good job :slightly_smiling_face:

Just to add to this topic, since I’ve been struggling with this myself.
I have created a plugin to do just that kind of diacritics replacement (which is free, by the way), but I’m facing a scenario where a server side action is not available.

Basically I’m inside a repeating group, in a need to grab a dropdown value as it changes and remove diacritics of it to pass to another dropdown do a API call using that value.

The solution I’ve got is using the Toolbox Plugin to run a javascript function.

Just add a “Expression” element and add the following function to it:

const removeAccents = str =>
  str.normalize('NFD').replace(/[\u0300-\u036f]/g, '');

removeAccents('[your field here]');

Screenshot 2024-02-27 at 09.59.11

You’ll the be able to get this element’s value to use wherever you need in your app.

1 Like