Hi community, I wrote the following Regex to match either hostname formats:
The hostname are dynamically created.
I've check the rule on Regex 101 and matches everything as expected, but when I go to Dynatrace and hit preview only matches example 1 and 4. What I'm doing wrong?
Thanks in advance.
Solved! Go to Solution.
thanks for your answer.
I'd recommend using what @Babar_Qayyum supplied, if that still fails (which i dont expect) then maybe make 4 rules, one for each line item to ensure they are working correctly.
Thanks, finally instead of doing one rule, I made one for 1 and 4 and other one for the 2,3. It's not what I wanted, but the field is limited to 80 chars, so If in a future I add more examples it would be easier to maintain.
great to hear, but yes I've run into issues too with character limits for regex, but still cut down on the overall rules. glad it worked
Maybe toss in a RFE for that limit to be raised.
Good Idea, I've done a request and wait if it accepted. Thanks for your answers.
toss along the link and ill up vote it