Hi All,
I am very inexperienced when it comes to regular expressions. What I'm trying to do is iterate through a list of strings and try to locate strings that are of a certain pattern. The strings I am interested in will be in the form of "some text ***{some text}***"
How do I write a RegEx to match up to? I was trying this:
Regex expression = new Regex("***");
but this gives me an error. parsing "***" - Quantifier {x,y} following nothing.
Can someone point me in the right direction?
I'm trying to loop through select list options and add a css class to the options that are relevant.
Regex expression = new Regex("***");
foreach (ListItem li in listItemCollection)
{
if (expression.IsMatch(li.Value))
li.Attributes.Add("class", "highlight1");
}
but this obviously isn't working.
Any help is appreciated, ~ck in San Diego