better syntax for re matching