sinara
August 22, 2017, 12:21am
1
Hi,
I have a document (text.txt) with data like below:
Physical Examination: Neck:normal
Lung:normal
Heart:normal
ASSESSMENT:
Assessments: Diabetes
Hypertension
PLAN: ABC
I need to extract whatever is coming against Assessments. And also this assessments can be displayed in more than one page, but i need to consider only first occurrence. Can anyone please let me know how to do this ?
ranjith
(Ranjith)
August 22, 2017, 5:20am
2
@sinara
Use Split function or get index function with sub string to fetch the text.
Check this workflow test.zip (1.6 KB)
Best Regards,
Ranjith
1 Like
aksh1yadav
(AKSHAY YADAV)
August 22, 2017, 5:41am
3
Hey @sinara
Well you can use Regex pattern for that : (?<=" + wordBefore + “)(.*?)(?=” +wordAfter + ")
For your Reference: Here we Go (Tagline of my friend @ddpadil )
Sinara_sample.zip (2.4 KB)
// It consists case sensitive labels
Regards…!!
Aksh
2 Likes