VMware Aria

 View Only
Expand all | Collapse all

Using regular Expressions to create custom group in aria operations 8.14

  • 1.  Using regular Expressions to create custom group in aria operations 8.14

    Posted Jun 21, 2024 10:12 AM

    Hello,

    I didn' get it how to create custom group using a match in a regular expression.

    I use all possibility and it doesn't work ( may be it is me :) ).

    I want to make custom group based on the object name of a virtual machine.

    My VM's look like qpn-cd-tng-... or qpn-sn-moo-...

    I put as a match for the regular expression qpn-(cd|sn)-(tng|moo)- and I didn't get my VM's?!?

    Thanks for the help



  • 2.  RE: Using regular Expressions to create custom group in aria operations 8.14

    Broadcom Employee
    Posted Jun 24, 2024 01:34 PM

    Hello Khames, 

    Could you please try the following: 
    ^qpn-(cd|sn)-(tng|moo)-.*$

    • ^: Asserts the position at the start of the string.
    • qpn-: Matches the literal string "qpn-".
    • (cd|sn): Matches either "cd" or "sn".
    • -: Matches the literal character "-".
    • (tng|moo): Matches either "tng" or "moo".
    • -: Matches the literal character "-".
    • .*: Matches any character (except line terminators) zero or more times.
    • $: Asserts the position at the end of the string.


      Thanks,
      Anahit