I am a Java developer, and new to Python. I would like to define a regex accepting all the alphabetic characters except for some of them. I want to exclude just the vowels and the character 'y', be it in upper- or lowercase.
The regex in Java for it would be as follows:
"[a-zA-Z&&[^aeiouyAEIOUY]]"
How can I (re)define it as in Python? The above doesn't work for Python, obviously. And I also would NOT like the following pattern to be suggested:
"[bcdfghjklmnpqrstvwxzBCDFGHJKLMNPQRSTVWXZ]"
&&form your Java code?