replace Square Bracket [ with [[]

0
Hello,   Can someone please help me to replace square bracket [ with [[].
asked
2 answers
2

You mean in a text? You can use string functions for that. Ex: replaceAll, replace etc. 

 

replaceAll($text, ‘[‘, ‘[[]’)

 

You can find the documentation: 

 

https://docs.mendix.com/refguide/string-function-calls/

 

answered
0

You can use the replaceAll function, but since it interprets the ‘needle’ parameter as a regex you need to escape special character like this:

replaceAll($YourString, '\[', '[[]')

 

answered