How to extract piece of string within string

后端 未结 1 1974
误落风尘
误落风尘 2021-01-28 16:37

I have a Log from which I want to extract anything after \"name= \". Log looks like this:

BC_WVM_FAIL: Rend wrong size for BCID 4608603 rend_id: 4608621 expec         


        
相关标签:
1条回答
  • 2021-01-28 16:39

    You've got a few options here. Both center around using either the FIND function (case-sensitive) or the SEARCH function (non-case-sensitive) for locating the starting position of what to splice out of the longer text string.

    =REPLACE(A1, 1, SEARCH("name:", A1)+LEN("name:"), "")
    =MID(A1, SEARCH("name: ", A1)+LEN("name: "), 99999)
    
    0 讨论(0)
提交回复
热议问题