Adding local variables for regexp.