restored recently added regex support that was removed by mistake