Skip to content

Commit 33ef528

Browse files
Merge pull request #15 from mariloutb/patch-1
Update sql-server-regex.md
2 parents 19f2dc3 + 5335566 commit 33ef528

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs2/pages/troubleshooting/sql-server-regex.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Introduction
44

5-
Finding or replacing text in SQL is a very frequent scenario. "LIKE" and "PATINDEX" are often used but, unfortunately, are not close to be as much powerful and offering the same possibilities as regular expression (Regex) does.
5+
Finding or replacing text in SQL is a very frequent scenario. "LIKE" and "PATINDEX" are often used but, unfortunately, are not close to be as powerful and offering the same possibilities as regular expression (Regex) does.
66

77
Eval SQL.NET lets you use and exploit fully C# regular expression features directly in T-SQL stored procedures, functions and triggers. It's possible to use regex in SQL search condition and select statement.
88

@@ -82,7 +82,7 @@ DECLARE @website VARCHAR(255) = NULL;
8282

8383
IF ( @website IS NULL )
8484
BEGIN
85-
-- IF user has not specified a website, try get it from the short description
85+
-- IF user has not specified a website, try to get it from the short description
8686
SET @website = SQLNET::New('
8787
string value = Regex.Match(shortDescription,
8888
"(https?:\/\/(?:www\.|(?!www))[^\s\.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})").Value;

0 commit comments

Comments
 (0)