I need a regular expression to capture all text before a character, lower or upper case directly followed by a number from zero to nine. And if the code would be different the same but for more than one character in both lower or upper case. An example of the type of strings I am working with:
case 1: "This is what I want v1"
case 2: "This is what I want Vol.27"
desired result: This is what I want
I have it working except for being case insensitive:
result = Regex.Match(filename, @"(.*?)(?:\s+V[0-9]+|\s+Vol\.?\s*[0-9]+)").Groups[1].Value;
So close! Anyone know how to make it case insensitive?