make regexp more in line with compile.el processing.