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

User Tag Regex Cleanup

natanael_mendes
Champion

Hello, i need help to make a regex 

\n \n <strong>e-CPF:</strong> LUIZ CLAUDIO GOMES DA SILVA - 279\n \n

To output only LUIZ CLAUDIO GOMES DA SILVA

Dynatrace Professional Certified
9 REPLIES 9

DanielS
DynaMight Guru
DynaMight Guru

Hi @natanael_mendes, assuming that name is a placeholder. You can use:

/[[:upper:]]+[[:blank:]]+/gm

 

The true delight is in the finding out rather than in the knowing.

natanael_mendes_0-1694791185509.png

Im getting this

Dynatrace Professional Certified

Mohamed_Hamdy
DynaMight Champion
DynaMight Champion

Hi @natanael_mendes,

you can also use the following for user tagging regex cleanup rule

Mohamed_Hamdy_0-1694755477779.png

 

Certified Dynatrace Professional | Certified Dynatrace Services Delivery - Observability & CloudOps | Dynatrace Partner - yourcompass.ca

i tried this too

Dynatrace Professional Certified

The sample that i have is this 

 

\n \n <strong>e-CPF:</strong> LUIZ CLAUDIO GOMES DA SILVA - 27\n \n

Dynatrace Professional Certified

Hi @natanael_mendes,

I've tested it and it works with the sample you've provided, you need to add "space" after ">"

> (.*?)-

Mohamed_Hamdy_1-1694793714932.png

 

 

 

Certified Dynatrace Professional | Certified Dynatrace Services Delivery - Observability & CloudOps | Dynatrace Partner - yourcompass.ca

i used your code to do what i wanted, was not the solution for real but was very very helpful. thanks alot

Dynatrace Professional Certified

ChadTurner
DynaMight Legend
DynaMight Legend

@DanielS thanks for providing the regex to complete this ask. 

@natanael_mendes - https://regex101.com/ is a great site to build and test your regex. I highly recommend it. using it, I was able to validate Daniels Solution: 

ChadTurner_0-1694780008572.png

 

-Chad

I tried but the Dynatrace Regex is different from others

Dynatrace Professional Certified

Featured Posts