How to get the first item in matchcollection uipath without loop?

My regex matches has always 1 result . how to get the first item in matchcollection uipath without loop ? Thanks.

image

you can use matchColl(0).tostring
matchColl - output variable of matches

Thanks

1 Like

image

there is no result coming from the output, can you please check if the regex is working by clicking configure regular experession

1 Like

image

I dont understand why it is not working even with regex.match …damn

check if multiline is checked in the regexoption (property) and also check other options also.

Thanks

1 Like

@prasath_S

image


Please send the xaml and text file i will check from my end.

Thanks

1 Like

Can you please try this at your end Sir

[quote=“AhmedKutraphali, post:14, topic:320814”]
System.Text.RegularExpressions.Regex.Match(data,"(?<=Last name\n)[^Last name]\w*(?=\nLast name)|(?<=Last name )[\w\W]+(?= Your social security number)").Value

using the data I have send you, I wanna know if it works on your end in uipath Thanks

@AhmedKutraphali - Is this a repost??

1 Like

yes @AhmedKutraphali will try and provide a sample workflow…

1 Like

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