<html>
<body>
<script type="text/javascript">
var str = "r'i`t\"291134837u";
var invalidChar = new RegExp("[\',\",\`]","gi");
document.write(str.match(invalidChar));
</script>
</body>
</html>
I just want my regular expression to match a backslash. Thats all.
Tried giving [\\]. Aint working. Tried[\x5c] not working. But this hexadecimal character match is working for all the other characters.
Its so silly. I'm not able to do.. :'(