I can’t write regular expressions
But I have a set of rules to tell the “still lifes” and “oscillators” apart;
A “still life”’s name should satisfy these 4 rules;
1)it contains exactly one of:
a) exactly one letter ‘b’
b) exactly 1-2 letter ‘p’s
c) exactly one letter ‘f’
2) if the name contains both the letter ‘a’ and the letter ‘o’, then ‘oa’ should be the name’s substring.
3) the name doesn’t end in the letter ‘r’.
4) the name contains no number.
Hope someone can help me write this in a regular format