To extract data from word

image

I want to extract the details after school,name and order separately.How can I extract it other than document understanding.Is there any possible way to extract this text?

1 Like

Hi

You can read this word activity
Install UiPath.Word.Activities by going to Design tab → manage packages → all packages → search v or the above package and install it

From that you can read it with read file activity

https://docs.uipath.com/activities/other/latest/productivity/word-read-text

Let’s say you have got the output as string named str_input, after using the above variable

  1. Now use a Assign activity like this

Str_School = System.Text.RegularExpressions.Regex.Match(str_input.ToString, “(?<=School).+” ).Value.Trim

  1. To get order name

Str_Order = System.Text.RegularExpressions.Regex.Match(str_input.ToString, “(?<=order).+“).Value.Trim

  1. To get name

Str_Name = System.Text.RegularExpressions.Regex.Match(str_input.ToString, “(?<=name).+”).Value.Trim

Hope this helps

Cheers @

Hi @Abhirami_Ashok_Kumar ,
I think read text with word scope can get all text
then you can use regex to get each value of school, name and order
regards,