extend java and JS Regexes to the Schema protocol