I'm not very clever at Regex and still learning how to utilize it, and I would really appreciate some help.
I have a string like this:
"Language<option value='32'>Bahasa Indonesia<option value='19'>Dansk<option value='4'>Deutsch<option value='1'>English<option value='2'></option></option></option></option>"
I need to convert this into something I can work with, like:
public class CVModel
{
public string value;
public string content;
}
How do I use Regex to extract this information? I know I can use
"<.*?>"
to strip out the option tags replace them with a delimiter which I can use to split to a list. But how do I extract the "value" attribute? Thanks in anticipation!