Say I have this piece of text:
some.blah.key={{blah.woot.wiz}}
some.another.foo.key={{foo.bar.qix.name}}
+ many other lines with a variable number of words separated by dots within {{ and }}
I'd like the following outcome after replacing dots with underscores in the right part (between the {{
and }}
delimiters):
some.blah.key={{blah_woot_wiz}}
some.another.foo.key={{foo_bar_qix_name}}
...
I'm looking for the appropriate regex to perform the replacement in a one-liner sed
command`.
I'm on a lead with this one: https://regex101.com/r/8wsLHo/1 but it capture all dots, including those on the left part, which I don't want. I tried this variation to exclude those on the left part but then it doesn't capture anything anymore: https://regex101.com/r/d7WAmX/1