Replace all - unclosed group error

I'm trying to replace relative links with the following logic:'/somepage') //Old'') //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', '''')   Not working replaceAll($Variable, '''/', '''')   Error: Unclosed group near index .. using regex   Does anyone have an idea why it's giving this error while Mendix accepts the expression?
1 answers

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.