We are trying to do a RegexReplace in Visio for a string with Pipelines :
String1|String2|String3
We do the following inside the Visio :
[RegexReplace:\|,[var:tpprogram] , \n]It is replacing the pipes but instead of a new line it those this :
String1\nString2\nString3
Is there a way to replace the pipes with a new line?
Thank you in advance.
Hi Hugo,
I checked and simply putting \n won't work. Instead, you will need to get the new line in the Visio shape data or the text field of the shape. To get it to work you will need to first press and hold 'Shift' key and hit 'Enter'. After that it'll show the new lines in the Visual Overview.
[RegexReplace:\|,String1|String2|String3,]
Since we were generating shapes based on table rows, (https://docs.dataminer.services/user-guide/Basic_Functionality/Visio/generating_shapes/Generating_shapes_based_on_table_rows.html), we were able to use the following in the shape text
“[RegexReplace:|,[param:*,7008,[ParentDisplayTableIndex]],
]”
while leaving the ‘Parameter’ shape data field blank. This configuration allowed the ‘subscriptionfilter’ data to pass and display as desired.
Thanks for the help Jarno.