I've following problem: I'm trying to replace every occurrence of a string that starts with % and also ends % with, in the middle of the precentage symbols there should be alphanumerical chars. and brackets () allowed. This is what I currently have:
/^%[a-zA-Z0-9()]+%$/