# Cleanup Rule

**URL:** <https://community.dynatrace.com/t/cleanup-rule/41659>\
**Category:** Open Q&A\
**Tags:** regex, tagging\
**Created:** [September 15, 2023, 5:58pm UTC](https://community.dynatrace.com/t/cleanup-rule/41659 "2023-09-15T17:58:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![natanael\_mendes](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/natanael_mendes/32/15264_2.png) [@natanael\_mendes](https://community.dynatrace.com/u/natanael_mendes)\
**Post date:** [September 15, 2023, 5:58pm UTC](https://community.dynatrace.com/t/cleanup-rule/41659/1 "2023-09-15T17:58:56Z")

</div>

Hello Guys im having a problem with this regex

![natanael_mendes_0-1694800619983.png](https://global.discourse-cdn.com/dynatrace/original/2X/b/bd6a40b17e672872bf50e913225e06368b85f5c8.png)

i want to bring only CARLOS ALBERTO CAINO

And i did this cleanup rule

 ![natanael_mendes_1-1694800671667.png](https://global.discourse-cdn.com/dynatrace/original/2X/2/2a81e3566db643d89e9e5fb77a631b4250c42675.png)

but the e-CPF and the numbers still showing up.

How can i do this?

---

<div class="post-metadata">

**Author:** ![Taylor-Sanchez](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/taylor-sanchez/32/8756_2.png) [@Taylor-Sanchez](https://community.dynatrace.com/u/Taylor-Sanchez)\
**Post date:** [September 17, 2023, 3:03am UTC](https://community.dynatrace.com/t/cleanup-rule/41659/2 "2023-09-17T03:03:30Z")

</div>

Hi&nbsp;[@natanael\_mendes](https://community.dynatrace.com/user/30468)&nbsp;,

I’m not too sure if you know of this website, but you can use it to test various cases of RegEx alongside Python if you’re familiar with that as well.

> **[regex101: Online Regex Tester, Builder, Converter & Debugger](https://regex101.com/)**
>
> Build, test, debug and convert regex across flavors with real-time matches and clear explanations. Supports PCRE2, JavaScript, Python and more. Save and share examples.

In addition, inputting your test case into the RegEx generator on that site, I was able to generate this. Hopefully it serves as a starting point:

 ![TaylorSanchez_0-1694919788457.png](https://global.discourse-cdn.com/dynatrace/original/2X/5/5572b1d39f109a9642f9db8493015e1caae16ffe.png)

 ![TaylorSanchez_1-1694919798548.png](https://global.discourse-cdn.com/dynatrace/original/2X/d/ddbcd74105b26d5bf07b4f2dabae83bbaaa071a6.png)

Best Regards,

Taylor Sanchez

---

<div class="post-metadata">

**Author:** ![Taylor-Sanchez](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/taylor-sanchez/32/8756_2.png) [@Taylor-Sanchez](https://community.dynatrace.com/u/Taylor-Sanchez)\
**Post date:** [September 17, 2023, 3:04am UTC](https://community.dynatrace.com/t/cleanup-rule/41659/3 "2023-09-17T03:04:26Z")

</div>

Also adding that you can use that RegEx generator to test out your specific String. I’ve noticed that the appending values are blotted out, so if it’s sensitive information and the RegEx provided doesn’t work, you can adjust as needed for your use case.
