I'm trying to replace relative links with the following logic: window.open('/somepage') //Old window.open('http://domain.com/somepage') //New To do that, I'm using the replaceAll function. However, in one situation it's working, while in another it's giving an error. Working replaceAll($Variable, '''/Pages', '''https://domain.com/Pages') Not working replaceAll($Variable, 'window.open(''/', 'window.open(''https://domain.com/') Error: Unclosed group near index .. using regex Does anyone have an idea why it's giving this error while Mendix accepts the expression?
you still have to escape the ( character this is a group character in regex. this is not closed. so you might escape this character using an escape character.