apply_re_subs#

pyCGM2.Utils.prettyfier.apply_re_subs(string, RegExSub_list, debug=False)#

Apply multiple regex substitutions to a string. :param string: String to be processed. :type string: str :param RegExSub_list: List of RegExSub objects to apply. :type RegExSub_list: list :param debug: Show results of each regexp application. :type debug: bool, optional

Returns:

str – String after all regex substitutions have been applied.