Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
brendanb
Starting Member
7 Posts |
Posted - 2013-11-11 : 19:29:10
|
Hi,I have for example a phone number field that has a multitude of characters I want to strip out so I can do a comparison on a query. Does SQL have any built in REGEX functions?I know I could do REPLACE(X,' ', ''), but this seems like a bad way to have to handle various characters. Like for example I could have a Space, Pipe, or some other characterregardsBrendan |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2013-11-12 : 01:46:06
|
you can write a CLR procedure for that. .NET has regexmatch function.------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
|
|
|
|