RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Windows NT - Operating System String
Expression
((?:Microsoft)?.?(?:(?:Windows.NT.(?:[1-4].[0-9]))|(?:Win(?:dows)?.?NT).?[1-4](?:.?[0-9])?|NT[1-4]))
Description
Matches the "Official" and several other popular expressions of the "Windows NT" line of operating systems. Used to discern one OS version from another. Must include at least one digit of the version number (1 to 4 or 1.0 to 4.9 will match). Only one capture group will return the full, matching string.
Matches
Windows NT 4.0 | Microsoft Windows NT 4.0 | Microsoft Windows NT 3.5 | Win NT4 | NT4 | Windows_NT_4.0 | MicrosoftWindowsNT3.1 | WindowsNT4 | Windows_NT.4
Non-Matches
WinNT | Win NT | Windows 2000 | Windows NT
Author Rating: Not yet rated. Robert McGinley
Source Brain Thinking
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials