Php Regex Replace Array Python Tutorial