cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Help with regex for place holder of web request naming rule

Yosi_Neuman
DynaMight Champion
DynaMight Champion

Hi guys,

Need some help with regex for place holder of web request naming which need to fetch the word in the end of the url after "-"

From regex tester its look $|-(\w{1,})$ should do the trick


But its not seem to works within Dynatrace.

If removing trailer $ ($|-(\w{1,}) we can see its fetch the word after the first "-"

Any suggestions how to get the word after last "-" in url?

Thanks in advance

Yos

dynatrace certificated professional - dynatrace primer partner - Matrix Soft Ware Division - Israel
2 REPLIES 2

ChadTurner
DynaMight Guru
DynaMight Guru

I was using Regex 101, what if you used: -(\w{1,})$

-Chad

Hi @Chad T.

Thanks for your checking, unfortunately its not working with in dynatrace 😞

For some reason the $ at the end of the regex with in dynatrace is not behave like in regex101 or dynatrace regex tester

Yos

dynatrace certificated professional - dynatrace primer partner - Matrix Soft Ware Division - Israel