fix script regex