We have customer with which we are monitoring RUM in some Applications using Dynatrace Managed, from one of this applications (in a certain page) we need to extract a User Name so this can be used as a User Tag for the Application; the Issue is that there is no alternative but to use a CSS Selector to extract the data, but the selector applies to more that just the User Name; so we are extracting something like this:
Welcome Mr(s): <User Name>, <Some User-Selected Welcome Phrase>, Change your Avatar (options).
We are having trouble extracting (or cleaning) this retrieved text (so we can just get the <User Name> as requested by the costumer); we tried with a cleaning rule like this:
Welcome Mr(s): ([a-zA-Z\s]*), Change your Avatar (options).
But Dynatrace refuse to accept this rule because of the additional parenthesis: “Regular Expression must contain only 1 capture group”.
What we can do to fix this? Or to extract more efficiently the User Name?
Solved! Go to Solution.