Remove all special characters with RegExp

var desired = stringToReplace.replace(/[^\w\s]/gi, ”) As was mentioned in the comments it’s easier to do this as a whitelist – replace the characters which aren’t in your safelist. The caret (^) character is the negation of the set […], gi say global and case-insensitive (the latter is a bit redundant but I wanted to mention … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)