Creates the regex string to make a group optional
initial_regex (str) –
str
capture_group (bool, default: False) –
bool
False