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

This product reached the end of support date on March 31, 2021.

Extended regex for matching a word


How can I code the dcrum regex to match a certain string in the url and not get garbled ADS output?

The url is this:

As we Belgians are multiple-linguistic (smile) this url can have multiple appearances:

in Dutch:

in French:

Also, depending on being logged-in or not, 'myportal' can also be 'portal'

I coded the dcrum regex as:


This seems to fit all possible urls for this case, but the ADS output is not what I expect, due to the use of brackets:

I would expect it to be:

Of course I could code all languages separately, but as there are multiple urls to process the list can grow quite long.



Dynatrace Pro
Dynatrace Pro

For the example only with "portal", "myportal", "fr" and "nl" variations it would be:


As round brackets in DCRUM are used for selecting the part of string that should be reported so there might be a problem to use it for aternatives like "(one|two)". We're lucky that "myportal" overlaps "portal" ...

I will make sure what to do if we need to use (myportal|noportal) alternative and let you know.

Hi Adam,

coding with square brackets does not prevent getting a match for

which is not what I want.


I know, but our regexes does not allow to provide an alternatives of full phrases ...

So either you decide to use:

Definition for "portal", "myportal" and "ymportal"

and take a risk to have "ymportal" (is there really such URL?),


you provide as many definitions as many "myportal" and "portal" phrases you have:

Definition for "portal"
Defeinition for "myportal"



For the time being I will code every URL separately (the last part also has 2 language equivalents and this is the main cause for bad matches).

Is there any chance that this will change in a future release?



It looks to be possible anyway.



"?:" mans that the content of this bracket contains alternatives of words.

It's will not be testable in RUM Console but will work when saved and sent to the AMD. Applications.xml file fill recognize it and let RTM process use it.

Sorry for the confusion.


Please remember that you can still use Page Titles or other HTML tags to name your transactions. Than, url becomes just a parameter. You can also build your transactions in the report server where you can add operation (url) string rules to transaction definition.