Answers for "negated character sets"

0

negated character sets

(JavaScript)
To create a negated character set, you place a caret character (^) 
after the opening bracket and before the characters you do not want to match.
For example, /[^aeiou]/gi matches all characters that are not a vowel.
Note that characters like ., !, [, @, / and white space are matched - the 
negated vowel character set only excludes the vowel characters.
Posted by: Guest on January-19-2021

Browse Popular Code Answers by Language