Regex Match help - How do I match on a string and

Good afternoon UiPath Forum,

I have a use case where a PDF form is read into a text variable. The overall structure of the output is consistent. I need a regex match that will read that text variable for a specific text string value and then select all the text on the NEXT line. Any assistance is greatly appreciated.

Hi @jamiejam ,

Could you maybe provide us with a Input and an Expected Output data ? We could help you better this way.

@jamiejam

you can try this…replace text with any string or word you want to search for

(?<=Text.\n).

Usage: System.Text.RegularExpressions.Regex.Match(str,"(?<=Text.*\n).*",RegexOptions.MultiLine).Value

hope this helps

cheers

Thanks @Anil_G . That was what I needed.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.