# Regexp for Url clean up

**URL:** <https://community.dynatrace.com/t/regexp-for-url-clean-up/45850>\
**Category:** Open Q&A\
**Tags:** regex\
**Created:** [May 31, 2024, 12:10pm UTC](https://community.dynatrace.com/t/regexp-for-url-clean-up/45850 "2024-05-31T12:10:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eamartn](https://avatars.discourse-cdn.com/v4/letter/e/f0a364/32.png) [@eamartn](https://community.dynatrace.com/u/eamartn)\
**Post date:** [May 31, 2024, 12:10pm UTC](https://community.dynatrace.com/t/regexp-for-url-clean-up/45850/1 "2024-05-31T12:10:34Z")

</div>

Hi everyone,

I would like to transform these type of URLs:

/evt21\_nsei\_fe-web/api/terceros/451804672024?codCia=41&codLanguage=es\_ES&codActTerceroAcceso=1

in something like this:

/evt21\_nsei\_fe-web/api/terceros/{param}

Could you tell me a regular expression for Dynatrace clean up URL rule to do it?

Thank you

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [May 31, 2024, 1:20pm UTC](https://community.dynatrace.com/t/regexp-for-url-clean-up/45850/2 "2024-05-31T13:20:16Z")

</div>

Hi,

You can create a [web request naming rule](https://docs.dynatrace.com/docs/shortlink/request-naming-rules#create-a-request-naming-rule-for-a-service). You do not need a regex to grouping it, just starts with “/evt21\_nsei\_fe-web/api/terceros/”.

Best regards
