Advice on how to write

  • took the root "aero", but

  • with the exception of "aerosol", "aerob"?

    (aero) -- Finds the group of a character in a given order.

    [^aerosol]|[^aerob] - Excludes words containing combinations of letters "aerosol", "aerob"?

1

There are 1 best solutions below

1
David542 On

I think you're looking for a negative lookahead, which is a way of making sure that certain characters aren't found after a match -- in your case, you want aero but not aero-sol or aero-b (dash just used for affect). Here would be an example:

enter image description here