I am trying to extract string between two strings.
INDICATION: (string i want capture) DESCRIPTION
"i string i want to capture" has a high degree of variability.
in some observations it is 1 word in others its 2 words and others 3 words.
i am not having problems in capturing the first string but capturing 2 and 3 seems to be a problem.
I am capturing the first string with
INDICATION: (string i want capture) DESCRIPTION
"i string i want to capture" has a high degree of variability.
in some observations it is 1 word in others its 2 words and others 3 words.
i am not having problems in capturing the first string but capturing 2 and 3 seems to be a problem.
I am capturing the first string with
Code:
gen indication = regexs(1) if regexm(notes,"INDICATION: ([a-zA-z+])[ ]*DESCRIPTION ")
Comment