0

I try to extract the value of a field that contains spaces. Apparently it is hard to find a regular expression for this case (even the question is if it is possible at all).

Example: 03 Container ID - ALL_ELIGIBLE_STG_RTAIN Offer Set ID

From Above example, we have to get the count Container ID - ALL_ELIGIBLE_STG_RTAIN

I am Expecting like this.

Container ID Count
ALL_ELIGIBLE_STG_RTAIN xxxx
PM 77-1
  • 12,933
  • 21
  • 68
  • 111
venkat
  • 1

1 Answers1

1

Assuming all container IDs are preceded by "Container ID - " then this command will extract them.

| rex "Container ID - (?<ContainerID>\S+)"
RichG
  • 9,063
  • 2
  • 18
  • 29