I want to find replace Version number from a string by using Regex in c#.
string is like this:
string val=”AA.EMEA.BizTalk.GroupNettingIntegrations, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a86ac114137740ef”;
Is any one can help me to solve this problem.
The following Regex will do the replace you are looking for.
EDIT:
You can also use look-behind Regex functionality if you don’t want to have to put the “Version=” in the replacement string. If you are looking for that, add a comment and I’ll draw it up.