making regex work and finishing translation of es to ex style formula