... work right as one.
... work as one.
One what? Well, there isn't much clue what they are meant to match! Or how
they are to be used... e.g. if you want to use Replace(), you may need to
mark sections - e.g. (using .avi):
Regex re = new Regex(@"^(.*)(\.avi)$", RegexOptions.IgnoreCase);
Debug.WriteLine(re.Replace(@"c:\test.dir\as.as\tes t.name.avi", "$1"));
outputs "c:\test.dir\as.as\test.name"; you can use different bracketed
sections (and $ symbols) to read/write different things.
But - a: I'm just simply not going to debug 20 Regex expressions here,
especially if it isn't clear what they are trying to do! Maybe one or two
*if* you indicate what it should match and what is failing. Otherwise, I
suggest you google for a good Regex dictionary...
Marc