Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Blog
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • DataMiner Insights
      • Security
      • System Architecture
      • DataMiner Releases & Updates
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
  • Downloads
  • More
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
      • General Inquiries
      • DataMiner DevOps Support
      • Commercial Requests
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Parse Service’s property in Visio

Solved1.14K views14th July 2023Visio
1
Hugo REHBEN203 26th April 2022 2 Comments

Good afternoon Skyline,

I'd like to parse one property of a service and instead of using an automation script to parse it, I'd like to know if it was possible to do it in Visio.
If yes, could you please provide any documentation.

Thanks by advance,

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 14th July 2023
Jarno Lernou [SLC] [DevOps Enabler] commented 26th April 2022

Hi Hugo, what actions do you exactly mean with ‘Parse’, i.e. what is your current state and expected state?

Hugo REHBEN commented 2nd May 2022

Good afternoon Jarno,
The current state of the property I’d like to modify is the following :
– SITE_1=MUS, PORT_IRD1_SLOT_C1=Slot: 5 Port: A, RELATED_CI_1_C1=Mus-MTG-AppearTV02;SITE_2=SAF, PORT_IRD2_SLOT_C1=2, RELATED_CI_2_C1=SAF_MTG_IRD02
The expected state I’d like to retrieve under a shape is :
Mus-MTG-AppearTV02, 2, these are the 2 information I’d like to keep, one is related to RELATED_CI_1_C1=, the other one to PORT_IRD2_SLOT_C1=.
So far I am able to retrieve, Mus-MTG-AppearTV02 thanks to (?<=RELATED_CI_1_C1=).[^;]*
In the Regexplace, I am not sure to understand the parameter z "the string that will replace each of the matches". Could you please explain with different words ?
Thanks !

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
0
Ruben Vandepitte [SLC] [DevOps Advocate]2.28K Posted 3rd May 2022 0 Comments

Hi Hugo,

I'm replying in a new post so that I can include a screenshot, and because there are multiple things at play here, that require an explanation...

The "z" part of the shape data will replace the text that matches with the regex.

I'm not too experienced with regular expressions myself, so someone might provide better alternatives, but for the scenario you describe below, I would typically work with capturing groups.

The idea is that you define a regex which matches with the entire text (ie the property), and specify a capturing group that contains the text you want to filter out. The "z" part can then reference that capturing group.

Practical example, based on what you have so far:

Regex: .*RELATED_CI_1_C1=(.*?);.*

If you enter this in a regex tester (ie regexr.com), you'll get:

As you can see, this matches with the entire string (see Match 0), and we also have a capturing group 'Group 1', which contains the result you're after.

The shape data then becomes:

[RegexReplace:.*RELATED_CI_1_C1=(.*?);.*,[Property:AbortMaintenance],$1]

$1 refers the the first capturing group 'Group 1'.

Translated: Replace the entire string with the result of the first capturing group.

There is however still a problem with this. Because Visual Overview uses the comma character to separate the x,y,z parts of the shape data, and your property also contains multiple commas, this will not be processed correctly.

To work around this, we need to specify a custom separator, ie the character #, which does not occur in the property value or regular expression. The syntax for this is [Sep:,#].

Translated: replace separator ',' with '#'.

The final shape data then becomes:

[RegexReplace:[Sep:,#].*RELATED_CI_1_C1=(.*?);.*#[Property:AbortMaintenance]#$1]

Hope that helps!

Ruben Vandepitte [SLC] [DevOps Advocate] Edited answer 3rd May 2022
You are viewing 1 out of 2 answers, click here to view all answers.
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin