Fixed the problem that regex doesn't work on linux