RegEx Builder won't print the result

Hello Team,

I am following the steps on the Data Manipulation with Strings in Studio: Data Manipulation with Strings in Studio Course | UiPath Academy

RegEx Builder Wizard, I am following step by step but the result is not printing.
I use this text:
β€œ275 S Wall St., Wilmington, OH, 45177 - Virginia USA, 1223 Pamela St., Leesburg, FL, 34748 - 1022 Lincoln Ave, Duquesne, PA, 15110 - US, 1295 N Opdyke Rd, Auburn Hills, MI, 48326 - 19 Orbit Dr, Enfield, CT, 06082”

and this is the RegEx pattern I use: "\b\d{1,8}(-)?[a-z]?\W[a-z|\W|.]{1,}\W(road|drive|avenue|boulevard|circle|street|lane|way|rd.|st.|dr.|ave.|blvd.|cir.|ln.|rd|dr|ave|blvd|cir|ln) "

I want to output the results as explained in the video but I cannot find currentItem, I see currentMatch

any idea what I am doing wrong?
thanks!

@Fadi,

Try logging currentMatch.Value

Hi,

In my environment, it works as the following.

Can you check the following sample?

Sample
Sample20250527-2.zip (3.1 KB)

Regards,

Hi @Fadi

You’re correct that in the Regex - Use currentMatch instead of currentItem in your loop then use currentMatch.value

If helpful, mark as solution. Happy automation with UiPath! :white_check_mark:

Hi @Fadi

yourInputString = "275 S Wall St., Wilmington, OH, 45177 - Virginia USA, 1223 Pamela St., Leesburg, FL, 34748 - 1022 Lincoln Ave, Duquesne, PA, 15110 - US, 1295 N Opdyke Rd, Auburn Hills, MI, 48326 - 19 Orbit Dr, Enfield, CT, 06082"

Regex: "\b\d{1,8}(-)?[a-z]?\W[a-z|\W|.]{1,}\W(road|drive|avenue|boulevard|circle|street|lane|way|rd.|st.|dr.|ave.|blvd.|cir.|ln.|rd|dr|ave|blvd|cir|ln)"

Make sure, in Find Matching Patterns, Ignore Case option is checked.

Output:

Hope it helps!!

1 Like