Using UIPath to select text but stop once it reaches a certain number

Hello everyone,

For an automation I am working on I need to write a script that can select text up until it reaches a number. Eg:

  1. Example text here

  2. More example text.

I would want the bot to select text starting at #1 and stop once it reaches the number 2 and so on. In the actual scenario there are multiple paragraphs. If anyone has a solution I would greatly appreciate it!

Hello @Caudill_Corey

Is it a text file and you need to read each line until your text identified?

Thanks

It is actually in another application called Beyond Compare. In the application it pulls two pdfs for comparison but the format seems to be similar to a text file. And yes I would like to select the text until it reaches the next number. Thanks!

Ok…So are you looking for a solution to compare two files?

Thanks