📜  否定字符集 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:09.632000             🧑  作者: Mango

代码示例1
(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.