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

Cleanup rule User tag from css

natanael_mendes
Champion

Hello, i made a user tag to get my users names from css, the value is 

\n <div class="nome-usuario">\n <i class="icon-user2"></i>Olá,\n SGHX \n </div>\n\n

and them this retrieve me "Olá, SGHX." i wanna know how can i remove the "Olá," 

the expression code in the cleanup rule

Dynatrace Professional Certified
3 REPLIES 3

Julius_Loman
DynaMight Legend
DynaMight Legend

If really you are capturing the string as above, then I'd go with:

Olá,\\n([^\\]*+)

 I'm not sure how you obtain the value now, but you should capture that by selector:

div.nome-usuario

 and then you don't have to deal with the tags and newlines in the cleanup rule.

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

im receiving "Olá, name of the user". i want to remove the "Olá,"

Dynatrace Professional Certified

Then just use this regex for the cleanup rule:

Olá, (.*+)

 

 

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Featured Posts