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

How to RegEx a user action property?

mareguera
Observer

I have created a user action property to get the revenue using a CCS selector.

I get the following data:

[, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Total: $500,00]

It see that is possible to "Apply cleanup rule" based on regex.

Please, does someone help me to create the proper regex to get only the figure 500,00?

Thank you

4 REPLIES 4

radek_jasinski
DynaMight Guru
DynaMight Guru

Hi,

You can use [\d,]+\,\d+

Screenshot 2023-03-27 at 15.54.35.png

Regards,

Radek

Have a nice day!

Than you. Is there any limitation in Dynatrace related to Regex?

mareguera_0-1679929812054.png

If I use () I get the following:

mareguera_1-1679929883618.png

Thank you.

Hi,

Yes, Dynatrace has limitations, I was asking today if Dynatrace has a tool for scenarios as yours: Dynatrace Regex Tester 

This should work "(\d{1,10},\d{0,2})" but I think this can be improved:

AntonPineiro_0-1679937401740.png

Best regards

❤️ Emacs ❤️ Vim ❤️ Bash ❤️ Perl

Thank you. It works properly.

Featured Posts