hi

Try this code and check whether it works.
Put the Code in B1 and assuming that Column A has your data

Code: =MID(A1,SEARCH("defg=",A1,1),10)