+ 1

^[aeiou] vs. [^aeiou] for designating non-vowels

Could anybody please explain to me if there is any logic why the second one is used vs. the first one? I always feel the second would designate something like "not-a", "e", "i", "o", "u"...

26th Jan 2020, 5:51 PM
Anke Wanger
Anke Wanger - avatar
1 Resposta
0
In the first one... the string must start with any of the chars specified. Your statement is correct for the second one. https://www.w3schools.com/JUMP_LINK__&&__python__&&__JUMP_LINK/python_regex.asp
26th Jan 2020, 6:11 PM
rodwynnejones
rodwynnejones - avatar