Regular Expressions 101

Community Patterns

1...456

Community Library Entry

-2

Regular Expression
.NET 7.0 (C#)

@"
(\d{4}).(\(.*?\)).(?:\(.*\)).-.(\d+\.)?(\d+\.)?(\d+\.)?(\*|\d+)(?:.*?)(?:(\w+).Edition)(?:.*?)(?:Windows.(\w+.\d+.\w+))
"
gm

Description

Parses MS SQL Server version returned from executing SELECT @@version

Submitted by M Rivas - 2 years ago