Php Regex Replace Array Python Initialize String