Add regex guard.