Regular Expressions 101

Community Library Entry

1

Regular Expression
Created·2016-03-07 00:33
Flavor·Python

r"
Data Source\s*=\s*|Server=tcp:(.*?),|;
"
Open regex in editor

Description

Extract the server and database name from SQL Server connection string

Submitted by Davos