I have a list of paths, and I need a match for all starting with C:\Program Files\_folder_\_folder_\etc
and then having any amount and any type of character a windows path can use.
This is how I approach, though I guess this only allows alpanumeric characters:
string pathPattern = @"C:\Program Files\_folder_\_folder_\etc[0-z]*";
if (System.Text.RegularExpressions.Regex.IsMatch(myList[n], pathPattern, System.Text.RegularExpressions.RegexOptions.IgnoreCase)
{
//some action
}