/[\W_]/g There have something I don't know how it works

/[\W_]/g There have something I don't know how it works
0

#1

(“0_0 (: /-\ :slight_smile: 0–0”) to return true
So,which means “(: /-\ :)–” has to be matched.
In " /[\W
]/g ", don’t understand how “_” can’t make it balance, it should be not works


#2

Check out these two sites - first is good info and the second a Regex testbox

RegexOne

Regex101


#3

It is really good resources.
Thank you so much!!