How to extract data after a specific header

uiautomation
activities

#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 ?


#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


#3

Hey @sinara

Well you can use Regex pattern for that : (?<=" + wordBefore + “)(.*?)(?=” +wordAfter + ")

For your Reference: Here we Go :stuck_out_tongue: (Tagline of my friend @ddpadil :wink: )

Sinara_sample.zip (2.4 KB)

// It consists case sensitive labels

Regards…!!
Aksh


#4

:rofl::hugs::metal::metal::metal::metal:


#5

Thank You!!