reduce regexp