Newbie to Regex and would like to convert all blank spaces into underscore for all occurrences that a string have between square brackets.
Example:
Original String: "This is a text [this is another text] but there is [more text] here"
Desired output: "This is a text [this_is_another_text] but there is [more_text] here"
Appreciate any help!