Indeed - clear as mud. I'm really not sure what exactly you want, but I'm assuming you want
to turn this:
<title>жадно девочка and 10 green elfs - Google.com - 05 </title>
Into this:
<title>жадно девочка and 10 green elfs 05 </title>
In which case, try this:
(?<=\<title\>.+?)\s*-.+?-\s*(?=.*?\</title>)
And use a Replace operation:
using System.Text.RegularExpressions;
public static Regex regex = new Regex(
"(?<=\\<title\\>.+?)\\s*-.+?-\\s*(?=.*?\\</title>)",
RegexOptions.CultureInvariant
| RegexOptions.Compiled
);
public static string regexReplace =
" ";
string result = regex.Replace(InputText,regexReplace);
If you ar egoing to work with regular expressions, then get a copy of
Expresso[
^] - it's free, and it examines, tests, and generates Regular Expressions.