Get the first occurence of Regex

Hello All,
I used this regex to get all the matches of my reference:


i have three Matches , I want to get the first one,second , third in order towrite them in excel
Any help please


Can you try Matches instead of Match as the following?

mc =System.Text.RegularExpressions.Regex.Matches(DocText,"(?<=Reference)(\w+)(\d+)")


Hello @nora_ziani Please Refer this Post.

Write Index as 0,1,2 in order to get First, Second and Third Occurence of Regex.