특정 글자 사이에 있는 글자 추출 방법은 뭐가있을까요

Thank you for your answer.

But there’s one problem.

resultstr.replace(“locdate”,“”).Trim If you write this sentence,

( locdate ) 20230122 (/locdate ) amongst locdate Only this will be extracted

20230122 20230301 I’d like to extract the date between locates.

Is there any way? I earnestly ask for your help.