How to get last 3 words from string

I have a string called : “Amazon Digital Vellum 55lb 12.5 x 9.5"”
From the above string i need to get the dimesnion which is 12.5 x 9.5"

and also need i have an array of strings :{“abc”,“def”,“123”,“456”,“789”}
how can i add last string from above array which is 123456789

Regex to get the dimension:

[\d]*.[\d] x [\d]*.[\d].

image

and also need i have an array of strings :{“abc”,“def”,“123”,“456”,“789”}
how can i add last string from above array which is 123456789

yourArrayVar.Last will get you the last element in the array.

From my array i need to concante last 3 string which is “123”,“456”,“789” to 123456789

yourArrayVar(yourArrayVar.Length-3) + yourArrayVar(yourArrayVar.Length-2) + yourArrayVar.Last

@niranjan.kodakandla
Welcome to the forum

grafik

we assume, that the ending " is also needed, maybe some variations e.g. the inverted ones are also handle

Assumption: Project set to Windows:
grafik

RnD was done within UiPath Studio Debugging - immediate panel

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