Have simple ReplaceAll and ReplaceFirst functions that dont use RegExp in addition to the ones currently available - Mendix Forum

Have simple ReplaceAll and ReplaceFirst functions that dont use RegExp in addition to the ones currently available

10

In quite a number of apps that I develop, I simply need to substitute parameters in a string with a value.

The parameters are put in the text as {text_to_replace}.

With the ReplaceAll function I get Mendix system errors if the variable in which the text needs to be replaced contains brackets or other special characters.

In a recent forum post this problem is also described.

https://community.mendix.com/link/space/studio-pro/questions/128184

 

Can we just get a function StringReplaceAll that simply accepts (Source, TextToReplace, ReplacementText) and doesn't use RegExp?

asked
2 answers

We definetly need this. Especially since the REGEX version works differently in microflows and on user (UI/nanoflow) level. Somehow I can't get it working in my app on UI level. Would love to see a simple sstring replace function.

Created

ok so this is why my MF is breaking ....

Created