hi,
I am trying to extract billing info from a field and use them as two different columns in my stats table.
Example field values:
SC=$170 Service IDL120686730
SNC=$170 Service IDL120686730
Currently I am using eval:
| eval fee=substr(Work_Notes,1,8)
| eval service_IDL=substr(Work_Notes,16,32)
|table fee service_IDL
to get fee as SC=$170 and service_IDL as IDL120686730, but since the original string is manually entered hence using substr ma not be efficient in case user puts extra spaces extra or if SNC=$0
So is there a way I can use regex to extract the two fields from original string "SNC=$170 Service IDL120686730"
Don't have much experience using regex so would appreciate any help!
thank you in advance.
... View more