I have hundreds of lines in an XML file like these two examples:
<settings site_id="someID123" xmltv_id="Some text - dummy (2) HH">Some text - dummy (2) HH</settings>
<settings site_id="moreID321" xmltv_id="More Text">More Text</settings>
I want to format with python regex everything inside of xmltv_id="HERE" without spaces, dashes or parentheses and add at the end .xx
xmltv_id="Some text - dummy (2) HH"
xmltv_id="More Text"
become like this
xmltv_id="Sometextdummy2HH.xx"
xmltv_id="MoreText.xx"
How can I do it?
Thanks!