Used UiPath Studio and RegEx to capture some text between two headings in a MS Word document, removed TABS and replaced with "-", now I want to remove any additional "-" characters after the first one.
RegEx used:
(?<=PostalAddress: )([\S\s]*)(?=Invoice Address:)").Value.Replace(chr(9),“-”)
with (chr(9)) being ASCII for 'TAB'
Initial string in MS Word
"customer name(TABTAB)customer address(TABTAB)"
Current output
"customer name--customer address--"
Desired output
"customer name - customer address"