<commit_before># SQL Server Regex

This code adds regular expression functionality to SQL Server using scalar and table-valued functions.


## Examples


## Installation



## Supported Versions

Currently only SQL Server 2012 is supported. Support for SQL 2008, 2014, and 2016 is coming very soon.


## Tests



## Further Resources

* https://blogs.msdn.microsoft.com/sqlclr/2005/06/29/working-with-regular-expressions/<commit_msg>Additional documentation<commit_after># SQL Server Regex

This code exposes regular expression functions to SQL Server, so you can run regular expressions using SQL queries. This is done by exposing the C# regex libraries using SQL CLR scalar- and table-valued functions.

## Examples

**Match**

See the documentation on [RegexMatch()](https://github.com/DevNambi/sql-server-regex/blob/master/examples/match.md) for more examples.

**Group Match**

See the documentation on [RegexGroupMatch()](https://github.com/DevNambi/sql-server-regex/blob/master/examples/group-match.md) for more examples.

**Replace**

See the documentation on [RegexReplace()](https://github.com/DevNambi/sql-server-regex/blob/master/examples/replace.md) for more examples.

**Matches**

See the documentation on [RegexMatches()](https://github.com/DevNambi/sql-server-regex/blob/master/examples/matches.md) for more examples.

**Split**

See the documentation on [RegexSplit()](https://github.com/DevNambi/sql-server-regex/blob/master/examples/split.md) for more examples.


## Installation



## Supported Versions

Currently only SQL Server 2012 is supported. Support for SQL 2008, 2014, and 2016 is coming very soon.


## Tests



## Further Resources

* https://blogs.msdn.microsoft.com/sqlclr/2005/06/29/working-with-regular-expressions/
{'fraction_non_alphanumeric': 0.11250713877784123, 'fraction_numerical': 0.02741290691033695, 'mean_word_length': 4.669902912621359, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 7, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '158888', 'n_tokens_mistral': 567, 'n_tokens_neox': 495, 'n_words': 154}