Hi Team,
I am trying to extract the value after a particular string format and its not getting the right value.
The Value i wanted is after this string "COUNT(1)=*"
{ORD_CRTN_DTE=XXXXXXXX, COUNTRY=XXXXXX, AGENCY=XXXXXXX, PGM_CDE=XXXXXXX, COUNT(1)=1}]
I am using the the below rex and its not giving the value of the count i.e 1. The Rex I am using is below.
rex "COUNT(1)=(?<Count>\d+)"
You were *so* close. Literal parentheses need to be escaped in regular expressions. Otherwise, they're treated as a capture group.
| rex "COUNT\(1\)=(?<Count>\d+)"
You were *so* close. Literal parentheses need to be escaped in regular expressions. Otherwise, they're treated as a capture group.
| rex "COUNT\(1\)=(?<Count>\d+)"
Thanks a lot Rich 🙂