Or:
- Accept characters in both ranges (alternating,
[ab]|[xz]
) or; - Use multiple ranges in a character group (
[a-bx-z]
) or; - Discard inverted range in character group (
[^cw]
)- Denial involves a lot of things before
c
and after w
, so it is [required] not the same as the previous ones, but it can be used as an advantage.
The corresponding values โโof a
, b
, c
, w
, x
and z
left as a [trivial] exercise for the reader.
Happy coding.
user166390
source share