I would like to ask, how to define Regex in C#
i have a text box, where user will write name of author, who should be find. i want to define Regex which will find in HTML content
<span class ="author">John</span>
<span class ="song">Hooray</span>
something like: user put John into textbox, program retrieves him Hooray
My attempt:
MatchCollection m1 = Regex.Matches(html, @"<span class=("[\w\d]*")\sauthor=("[\w\d]*")>([\w\d]*)</span>", RegexOptions.Singleline);