To match the 3 specific versions in one expression try:
<TargetFrameworkVersion>v(2.0|4.5|4.5.2)</TargetFrameworkVersion>
However, in answer to the original question, ie "...not targeting a specific version...", if you wanted to list all the versions not targeting 4.5.1 you could use:
<TargetFrameworkVersion>(?!v4.5.1).*?</TargetFrameworkVersion>
If you just wanted to list the framework version for all files you could use this:
<TargetFrameworkVersion>v.*?</TargetFrameworkVersion>
Note: Strictly speaking I should've escaped the period in the version numbers since unescaped they'll actually match any character but this can make the regex hard to read and since the version numbers are only single digit it shouldn't be a problem.