I've built the following regex. This matches the function call fn-bea:uuid()
It obviously matches the function, but when integrating it into my java program:
xqueryFileContent.replaceAll("(fn\\-bea:uuid\\(\\))", "0");
the function is not replaced. Any ideas what I'm missing?