removeExtraParenthesis(Cleans up a given string by removing unnecessary parentheses and replacing specific patterns with placeholders for later restoration. The function processes two types of patterns:strToClean
):string
Parameter | Type | Description |
---|---|---|
strToClean | string | The input string to be cleaned of extra parentheses. |
string
The cleaned string with unnecessary parentheses removed and original patterns restored.