I do exercises on regular expressions. It is necessary to make up the regular expression (negative examp les).
| Positive | Negative | | ---------- | ---------- | | pit | pt | | spot | Pot | | spate | peat | | slap two | part | | respite | |
Suppose the first part is this:
regex = r'pit|spot|spate|(slap two)|respite' And how to make the second and combine everything?