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

DynaTrace > User Session> User tag Capturing > Reg Ex

patelg6
Visitor

I am capturing string in format "Hello Mr. UserId DD:MM:YYYY"

I want to apply Regex to filter out "UserId" only. It's dynamic word. Please help me what regEx should I use?

GAP

3 REPLIES 3

patelg6
Visitor

Use 

(?:-) ([A-Za-z0-9, ]++)    

" - Welcome MrABC"  -> "Welcome MrABC"

 

 

(?:Refused by) ([A-Za-z0-9]++)

 

 

Removed "Refused by" from input string

rkdy
Dynatrace Helper
Dynatrace Helper

Hey @patelg6,

You can use the following regex:

 

Hello (?:Mr\.|Mrs\.|Ms\.) ([^ ]++) \d{2}:\d{2}:\d{4}

 

 

Example:

rkdy_1-1691629660400.png

Featured Posts