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

Regex Question

ajdimanuel
Inactive

Hi,

I am trying to get from URI's first and second directories, not files but I dont get it. For example, from the following URI /Content/Images/li-deco.jpg y want to extract /Content/Images/. Could you help me?

Thanks in advance.

Alberto.

2 REPLIES 2

christoph_wiesi
Dynatrace Helper
Dynatrace Helper

Hi Alberto,

the regex

(/.*?/.*?/)

should work.

Best Regards,

Christoph

ajdimanuel
Inactive

Thank you. It works.

Alberto.