This regex works at online regex testers but when I try this piece of code regex does not match.
Regex regex = new Regex(@"^\.lnr-(.*)\:before \{$", RegexOptions.Compiled | RegexOptions.Multiline);
string css = System.IO.File.ReadAllText(Server.MapPath("/linearicons-free.css"));
foreach (Match match in regex.Matches(css))
{
//doing sth
}
What am I missing ?