How do I go about removing all digits and all punctuations in a string using regex?
For example:
From Eric-Has555-Books
to EricHasBooks
I am trying to use String.replace(), but my regex below doesn't work:
str = 'Eric-Has555-Books'
reg = /[0-9]-/g;
str.replace(reg, '');