I have a Visio for an element, and I would like to get only the element ID, without the DMA ID.
I know we can use [this elementID] to get both the DMA ID and element ID, but is there a way to get only the element ID?
Ailton Luz [SLC] [DevOps Advocate] Selected answer as best 25th January 2024
Hi Ailton,
Following the answer Jarno, a better regex expression would be
\d+\/(\d+)
instead of
\/(.*)
as the one mentioned would only remove the / and leave everything else and with the \d you restrict to digits which is what IDs use
Ailton Luz [SLC] [DevOps Advocate] Selected answer as best 25th January 2024
Hi Ailton,
You can make use of the RegexReplace placeholder:
[RegexReplace:\/(.*),[this elementid],$1]Kind Regards,
Jarno
Ailton Luz [SLC] [DevOps Advocate] Posted new comment 25th January 2024
Hi Jarno, thanks for pointing me out to RegexReplace, but I was looking for something that would not require regex. But in the end, I will have to use regex…