I have different Xml strings that can contain one or more parts in the following format:
47862656
The valu
Apart from the usual don't use regex to manipulate XML.
string regex = "(?<=).*?(?= )";
Xml = Regex.Replace(Xml, regex, delegate(Match m) {
return IBANHelper.ConvertBBANToIBAN(m.Value);
});
This uses positive look ahead and look behind so that the match is just the account number and then the overload to Regex.Replace the takes a match evaluator.