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