generate_changelog.actions.text_processing.RegexSub

RegexSub#

class generate_changelog.actions.text_processing.RegexSub[source]#

Create a callable that will make substitutions using regular expressions.

replacement: Union[str, Callable[[], str]] = ''#

The replacement string for matches.

__call__(input_text)[source]#

Do the substitution on the input_text.

Return type:

str

Parameters:

input_text (str | Callable[[], str]) –

__init__(pattern, ascii_flag=False, ignorecase_flag=False, locale_flag=False, multiline_flag=False, dotall_flag=False, verbose_flag=False, replacement='')#
Parameters:
Return type:

None