+ 3

What this means? (/[^A-Za-z0-9]/g)

Need to understand the value , I get it partially like it's said the character from A to Z and a to z and 0 to 9 but I did not get g stands for what and also the symbols? is it character or is it symbol please help.

2nd Jul 2018, 3:55 AM
Rocky
Rocky - avatar
4 Answers
+ 14
FYI, here are the list of modifiers: i => case insensitive g => global m => multiline u => unicode
2nd Jul 2018, 10:42 AM
Amethyst Animion
Amethyst Animion - avatar
+ 4
That's the flag g -> global, m-> multiline etc.
2nd Jul 2018, 4:02 AM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 3
this is a regex that matches any non-alphanumeric characters. ("^" means negated character class, the letters and numbers signify all capital and lowercase letters and digits, and the "g" is just a flag for global as said in the previous comment)
2nd Jul 2018, 6:45 AM
hinanawi
hinanawi - avatar
+ 2
regEx
2nd Jul 2018, 1:03 PM
lbaum
lbaum - avatar