fix regex pattern of preprocessor