generate_changelog.actions.text_processing.FirstRegExMatchPosition

FirstRegExMatchPosition#

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

When called, returns the position of the first match in a string using a predefined regex.

__call__(input_text)[source]#

Search the input_text for the predefined pattern and return its position.

Return type:

int

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)#
Parameters:
Return type:

None