Can you please try this?
YOUR_SEARCH
| eval fieldB=fieldA+mvindex(split(fieldB,fieldA),1)
My Sample Search :
| makeresults
| eval fieldA = "BP498",fieldB = "A1John/Doe SmithBP498 XX XX XX"
| rename comment as "upto this is sample data"
| eval fieldB=fieldA+mvindex(split(fieldB,fieldA),1)
I hope this will help you.
Thanks
KV
If any of my replies help you to solve the problem Or gain knowledge, an upvote would be appreciated.
worked for me, much appreciated.
Can you please try this?
YOUR_SEARCH
| eval fieldB=fieldA+mvindex(split(fieldB,fieldA),1)
My Sample Search :
| makeresults
| eval fieldA = "BP498",fieldB = "A1John/Doe SmithBP498 XX XX XX"
| rename comment as "upto this is sample data"
| eval fieldB=fieldA+mvindex(split(fieldB,fieldA),1)
I hope this will help you.
Thanks
KV
If any of my replies help you to solve the problem Or gain knowledge, an upvote would be appreciated.
That's a cool way to remove something from a string! I'll add that to my repertoire, thanks!