Added a some Regular Expression escape code to various element definitions that use regular expressions. This should help prevent problems with special characters in the test cases.