Best practice to convert from System.Text.RegularExpressions.Match to String

What is the best way to convert the output of a Matches activity (System.Text.RegularExpressions.Match) to String, in order to be able to use that output.

.ToString is not an option.

1 Like

The Matches Activity Provides a collection object as output, you could try to do a for each activity to loop trought the matches.

Hi @William_Blech_Sister,

In my case it provides only one match as output. How can I use it as a string?

Hi,

In my case it provides only one match as output

Can you try the following?

result(0).Value

Regards,

4 Likes

A post was merged into an existing topic: :loudspeaker: UiPath Community MVP 2024 announcement!