Regex and List

how to get the first element of the list of system.text.regular.expressions.matches when I have only one element and i need to get just the first element ?

@Sakshi_Jain - Please post the some sample text and what is the expression you are trying??

If its related to the same post which you have already posted, please ask it in the same post…I see you are keep opening multiple posts and just asking various questions…Please use this forum wisely…

we are here to help always…

1 Like

Hi @Sakshi_Jain

Let’s say varaible data_1 is the varaible type
system.text.regular.expressions.matches list

Then to access the first element u the below method

data_1.ElementAt(0). ToString


Nived N :robot:

Happy Automation :relaxed::relaxed::relaxed: