Skip to content
/ RegExpUdf Public

An SQLCLR assembly to provide regexp functions

Notifications You must be signed in to change notification settings

lrs/RegExpUdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Regular Expressions for SQL Server

SQLCLR assembly to provide regexp functions similar to Oracle

Provides the following functions:

  • REGEXP_LIKE(@source NVARCHAR(250), @pattern NVARCHAR(250)) RETURNS BIT
  • REGEXP_INSTR(@source NVARCHAR(250), @pattern NVARCHAR(250)) RETURNS BIGINT
  • REGEXP_GET(@source NVARCHAR(250), @pattern NVARCHAR(250)) RETURNS NVARCHAR(MAX)
  • REGEXP_REPLACE(@source NVARCHAR(MAX), @pattern NVARCHAR(MAX), @replace NVARCHAR(MAX)) RETURNS NVARCHAR(MAX)
  • REGEXP_SPLIT (@source NVARCHAR(MAX), @pattern NVARCHAR(MAX)) RETURNS TABLE (split NVARCHAR(max) NULL)

See CreateFunctions.sql and Examples.sql for installation and usage.

About

An SQLCLR assembly to provide regexp functions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages