Clean regexp class