I am trying to create a regular expression that matches the third-person form of a verb created using the following rule:
If the verb ends with e, which is not preceded by i, o, s, x, z, ch, sh, add s.
So, I am looking for a regular expression matching a word consisting of several letters, then not i, o, s, x, z, ch, sh, and then "es". I tried this:
\b\w*[^iosxz(sh)(ch)]es\b
According to regex101, it corresponds to “loves,” “hates,” etc. However, it does not match the “baths,” why is it not?
source share