FYI, RegExp.escape is set in formdesigner.util