I am trying to build a regular expression in Qt for the following set of strings:
The set can contain all the set of strings of length 1 which does not include r
and z
.
The set also includes the set of strings of length greater than 1
, which start with z
, followed by any number of z's
but must terminate with a single character that is not r
and z
So far I have developed the following:
[a-qs-y]?|z+[a-qs-y]
But it does not work.