Hello
Have a read of my Regex Megapost.
First you need to get your text into UiPath.
Then decide whether to use String manipulation or Regex.
Take a look at this string manipulation mega post by @Adrian_Star.
Hopefully this helps.
I would work on providing a sample of your text from the PDF, then define the expected output, and tell us about the pattern.
Cheers
Steve