Clean regexp with class constants