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

regex to extract a InnerText

fpereira2
Visitor

Hi all,
I've problems with a filter regex, I need to filter a CSS, but the filter doesn't work successfully,

I need to get some data in my registration and this register has step by step, so I need to follow these steps and know how many customers login in my registration.


For that, I put in Dynatrace -> Session and Action Properties, a property in the CSS selector, to capture just the word:


ETAPA 1 OF 6


This expression means where my client is, (ETAPA = step), so I put the regex filter:

 

([ETAPD \ s \ d] {1,})


but I get other words too, like "GTrader + Simulator" and my filter gets a "T" because of that word.

I'm doing this chart, but he stay messy. Please, any help me!

2 REPLIES 2

fpereira2
Visitor

fpereira2_0-1617994122654.png

 

Radu
Dynatrace Pro
Dynatrace Pro

Hello,

 

Try this one:

(ETAPA \d)

 

The one you shared is looking for any letter, space or digit to appear 1 or more times and then captures the whole thing. With the one I suggested, you will be capturing exactly the text "ETAPA" followed by a space and one digit (e.g. "ETAPA 2").

 

Let us know how that goes.

 

 

Best regards,

Radu



Best regards,
Radu