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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Connection string sql database/instance reference in application configuration files
Expression
[\\""=:;,](([\w][\w\-\.]*)\.)?([\w][\w\-]+)(\.([\w][\w\.]*))?\\sql\d{1,3}[\\""=:;,]
Description
This expression is ideal used for "identifying some plain application configuration files that contain any form of MSSQL database/instance reference in connection string". Dose not match .\sql. [\\""=/] can be removed on both ends to seach server/instance in text files, but with it, it has better accuracy
Matches
=abc\sql022, =abc.e.f.g\sql078, =192.168.1.1\sql001, =234\sql003,
Non-Matches
sql .\sql003
Author Rating: Not yet rated. BH
Source myself
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-2018, RegexAdvice.com | ASP.NET Tutorials