How to put Regex capturing groups into uipath

Hi All,

I have a PDF I am scraping text from, that is all working. I am trying to then extract an address using Regex that span across 4 lines.
example:

Usual place of residence 22 ROY ROAD

Suburb HERSHEY

State NT

Postcode 6302

I would like to extract the details for each line after the space, e.g: Usual place of residence 22 ROY ROAD, I only want the “22 ROY ROAD”

I have been provided the following in Regex101.com
https://regex101.com/r/yrLUIv/1

This gives me the required results in the substitution, however I am not sure how to put that into uipath so it uses the substitution answer

Any guidance would be appreciated

@LB34

welcome to the forum

have a look here:

1 Like

Hello @LB34

From your Regex Result variable you can access the groups like this:

REGEXRESULTVARIABLE(0).Groups(1).tostring

Update the capital letters.

Change the 1 to 2,3,4 to access the other lines.

Hopefully this helps

See section 4 of the Megapost from @ppr’s post.

2 Likes

Thank you I will have a look at the example you provided in megapost.
Appreciate the quick reply :slight_smile:

1 Like