change the regex [^0-9a-zA-Z] to [\W]