- Published on
JS Regular Expression /./g
/./g
Explanation
.matches any character (except for line terminators)- Global pattern flags
gmodifier: global. All matches (don't return after first match)
/./g
. matches any character (except for line terminators)g modifier: global. All matches (don't return after first match)