multireplace#

pyconverter.xml2py.ast_tree.multireplace(string, replacements, ignore_case=False)#

Given a string and a replacement map, return the replaced string.

Parameters:
stringstr

String to execute replacements on.

replacementsdict

Replacement dictionary {value to find: value to replace}.

ignore_casebool, optional

Whether the match should be case insensitive. The default is False.

Returns:
str

Replaced string.