update warning label for regex