Skip to content

Instantly share code, notes, and snippets.

View ryaneastabrook's full-sized avatar

Ryan Eastabrook ryaneastabrook

  • CTO @ Scrum.org
  • Happy Valley, OR
  • 21:04 (UTC -07:00)
View GitHub Profile
@ryaneastabrook
ryaneastabrook / CLR RegExReplace
Created February 22, 2013 19:26
RegEx replace method for SQL CLR
//------------------------------------------------------------------------------
// <copyright file="CSSqlFunction.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
using System;
using System.Data;
using System.Data.SqlClient;
using System.Data.SqlTypes;
using Microsoft.SqlServer.Server;