I have found this site http://www.regexlib.com/ to be a good resource for regular expressions and they have a online regular expression tester.
This is a common mistake when coding regexes with Strings. We forget that Strings can have escape characters. So for instance, "\w" isn't a valid escape sequence in a String. If we want a regex of \w in a String, we have to type "\\w" to escape the backslash.
kennith stomps wrote:line 24 is giving me the error: This method must return a result of type boolean
this is the only route I can think of checking whether the string contains any special characters, by returning a boolean, however my boolean is not working? why is this?
Is your code returning a boolean in all cases?