I want to fetch the text from line using regex
eg :
string xyz = "text/plain; charset=US-ASCII; name=\"anythingfile.txt\"";
and i want to fetch the anythingfile.txt from that line
that mean i want to create regex that match the pattern name=”” and fetch string between double quotes
I tried with this
regex re= new regex(@"name="\"[\\w ]*\""")
but not getting proper result ….plz help me.
try this Regex Pattern,