0
How can I make the special character check also match spaces?
https://code.sololearn.com/WhH3Q09RHeQj/?ref=app I need the special characters check to include spaces in the counter. How can I achieve this?
2 Answers
+ 5
txt.match(/[^a-z0-9]/gi)
0
Thanks CalviŐ˛
Regular Expressions are difficult to learn for me. Lol