How do I pull out a substring from my _raw, and put it at the **beginning** of the event?
Erin Sweeney
Posts: 45 admin
Any suggestions for the best function to use if I need to pull out a substring (a key=value pair to be exact) from my _raw, and put it at the beginning of the event?
In summary, trying to go from:raw=,<my_KV_pair>, to:raw=<my_KV_pair>,
0
Best Answer
-
Use the Mask function, make it three parts, the stuff before your target, the part youre targeting, everything after. If your _raw has multiple lines, be sure to check the ‘s flag.
Match:
(first part)(middle part)(last part)
Replace:g3+g1+g2
0
Answers
-
Use the Mask function, make it three parts, the stuff before your target, the part youre targeting, everything after. If your _raw has multiple lines, be sure to check the ‘s flag.
Match:
(first part)(middle part)(last part)
Replace:g3+g1+g2
0