private static bool IsValidVersion(string fixedInVersions, string version) { var versionPattern = @"\b(?<!\.)" + version.Replace(".", @"\.") + @"(?!\.)"; return Regex.IsMatch(fixedInVersions, versionPattern) && !version.StartsWith("."); }