Php Regex Replace Array Python Example