Extract the MSKB # From A MS Windows Patch File Name


Vote Up
0
Vote Down

Open in the Regex Tester


Given a patch file name containing a KB # (ex. WindowsServer2003-KB1234567-v2-x86-ENU.exe), this regex will return the KB1234567 portion. If the KB # includes a version, it will be returned also. It will return 3 groups, the full KB (including the version if present), the KB # alone, and the version alone if any,
Rodney Rich
5/23/2014 8:05:13 PM


0 comments so far.
Log in to leave a comment.



<< back to Library