Which regular expression engine does Java uses?
In a tool like RegexBuddy if I use
[a-z&&[^bc]]
that expression in Java is good but in RegexBuddy it has not been understood.
In fact it reports:
Match a single character present in the list below
[a-z&&[^bc]
- A character in the range between
a
andz
:a-z
- One of the characters
&[^bc
:&&[^bc
- Match the character
]
literally :]
but i want to match a character between a
and z
intersected with a character that is not b
or c
[a-z-[aeiou]]
subtraction syntax indeed works in RegexBuddy, I can add that into my answer. – Bascio