remove obsolete calls to regexp