Ad
  • Custom User Avatar

    I put a spoiler tag over your solution: even if wrong, try to avoid giving "tips" to other codewarriors :)

    Other than that, I would use a simpler regex (if you want to use a regex, afterall): consider you only have to prove that the string is not empty and that there is at least one character which is not alphanumeric to prove it false, otherwise it is true.

    Hope this helps!