reducing regex matcher