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

regex incorrect value

mgrbb
Newcomer

dm:node-kind()="document", dm:node-name()="null", dm:string-value()=" 0AC50CA4-CC7E-3F80-015C-76981356806A 2017-06-05T01:07:30.618-05:00 1016 lxv2042 0AC50CA4-CC7E-3F80-015C-76981356804F a0b0001

We are creating a BT for the above its a return value o an argument with regex value, and its not able to give the correct result. Please let me know how to fix it.

5 REPLIES 5

peter_karlhuber
Dynatrace Pro
Dynatrace Pro

Hi Marvin,

please provide a little more context:

a) Which measure are you using?

b) What does your regex look like?

c) What is the current result and what is the expected result?

Thanks, br,

Peter

mgrbb
Newcomer

for Measure- Web Request with header value

Current Regex-

dm:node-kind()="document",
dm:node-name()="null", dm:string-value()="


0AC50CA4-CC7E-3F80-015C-76981356806A

2017-06-05T01:07:30.618-05:00

1016


lxv2042


0AC50CA4-CC7E-3F80-015C-76981356804F


a0b0001
"

Expected results-

dm:node-kind()="document",
dm:node-name()="null",
dm:string-value()="5e10e821-51f1-4a44-b5be-026392a08f722017-06-07T13:38:21.46-05:002346"

thank you.

This is NOT regular expression. Regexes do not contain hard coded strings. Could you be specific?

peter_karlhuber
Dynatrace Pro
Dynatrace Pro

Hi Marvin,

what you list under "Current Regex-" isn't actually a regex, it's just a string. This is a regex that would give you the string-value of all "document" node-kinds:

dm:node-kind\(\)="document".*?string-value\(\)="(.*?)"

if the node-kind isn't important, you could skip it.

I strongly recommend using the regex testing feature built into our client by clicking the yellow light bulb to the right of the input field. Let me know if this helps you, best regards,

Peter

PS: If you really want the whole string, place the parentheses like this:

(dm:node-kind\(\)="document".*?string-value\(\)=".*?")