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

Help me to change the url without digit using regex

andra_nosa
Contributor

Hi Guys i want to change this URL 

-> 

https://api.apps.ocp3s.intra.bca.co.id:443/oneklik/payments/api/40004/customer/00ff

into this 

https://api.apps.ocp3s.intra.bca.co.id:443/oneklik/payments/api/*/customer/*

I want change using naming rule and using regex, have try it but no result. 

Please help me

Regards,

Dynatrace Customer

3 REPLIES 3

Babar_Qayyum
Leader

Hello @andra_nosa and @markj152 

Please try the following:

^(https:.*([?!\/0-9]))$

Regards,

Babar

Hi Babar,

Still no result using you share regex

Regards,

Andra

Can be done with simple replace rule with "/api/" as starting delimiter and "*/customer/*" as replacement text in placeholder. Then use naming rule to match only urls with regex "api\/[\d\w]+\/customer\/[\d\w]+" and use placeholder when matched.