fix bug 1035212: fix regex errors.