Regex to match Version number not starting with x.y

I am trying to find version numbers in AssemblyInfo.cs files that don't start with the Major.Minor numbers I am building. I have tried various versions of this but it doesn't do what I want - can anyone help with my RegEx?

        <MSBuild.ExtensionPack.FileSystem.File Condition="'$(BuildNumber)' != ''"
                                           Files="$(AssemblyInfoFiles)" />

Note that I am using the AssemblyInfo class inthe extension pack but the above is for the initial set.

EDIT Here is the working version I am using with @Omega's help. Note that i am using a VersionMajorMinor property I already have.

        <!-- Update all the assembly info files with generated version info -->
    <MSBuild.ExtensionPack.FileSystem.File TaskAction="Replace"
                                           Files="@(AssemblyInfoFiles)" />


Try Version\(\&quot;(?!$(VersionMajor)\.$(VersionMinor)\.)\d+\.\d+\.\d+\.\d+\&quot;\)

Need Your Help

Call to a member function on a non-object error symfony2

forms events object symfony2

This is an odd one. I have this method, that is the callback for the FormEvents::POST_SET_DATA event in an EventSubscriber of a form in Symfony2:

Compressing and Decompressing same files produces different size

compression zip

Here is exactly what happened .. i received a compressed zip file from a friend of mine

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.