R12.1-JA-2025June05

Manually Add a Hash Tag Using Regex Match

Besides String Match and Subnet Match, NetworkBrain supports Regex Match. Follow the steps below to add a Hash Tag using Regex Match manually:

Step 1–3:  Define the name, description and Primary Tag for the new Hash Tag. Those steps are the same as the first three steps of Manually Add a Hash Tag Using String Match or Subnet Match.

Step 4:  Select the Match Type from the drop-down list as Regex Match.

Step 5: (Optional)Click on the number besides Associated Tags to open the Associated Tags window.

Step 6:  Enter the regular expression to match the Primary Tag and Associated Tags.

Step7: Click Save.

For example, the Hash Tag #tag1 has Primary Tag #key_application and five Associated Tags #status, #level, #city, #location and #device. You can use regular expression GCC\.Critical\.\(([A-Za-z]*)\)\.([A-Za-z]*)\.([A-Za-z]*)\.\(([A-Za-z0-9]*)\)\.PROD\.([A-Za-z0-9.\-]*).* to match the Primary Tag and Associated Tags.

Step 7:  After entering the regular expression for the regex match, click Test to test the regular expression. For this example, you can test with sample data from the ticket GCC.Critical.(Down).Platinum.AMER.(USHOU1).PROD.ushou1-rtr-vg-1.aecomnet.com. The match information will be displayed in the box below. The subgroups extracted from the original ticket data field will be the Hash Tag value for Associated Tags.