const regex = /((?!([0-9a-zA-Z!\-\_\.\*'\(\)])).)/g;
const
s = '1;çççç~~~~123-aãbc';
console.log(s.replace(new RegExp(regex), ''))
"1123-abc"
Created
February 9, 2018 18:37
-
-
Save franciscocpg/c15da0e206f4d5dcad755138ceef4619 to your computer and use it in GitHub Desktop.
My regex list (examples using javascript)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment