Formula for B1 =IFERROR(MID(A1,SEARCH("2p-7p",A1,1),5),"")

hope this will help