Examples:
C[C:2](=O)[OH].[OH:3]C>>C[C:2](=O)[O:3]C
Matches any esterification reaction.
(C[C:2](=O)[OH].[OH:3]C)>>C[C:2](=O)[O:3]C
Matches any intra-molecular esterification reaction.
(C[C:2](=O)[OH]).([OH:3]C)>>C[C:2](=O)[O:3]C
Matches any inter-molecular esterification reaction.