Regex pattern inside SQL Replace function?

前端 未结 10 1406
梦谈多话
梦谈多话 2020-11-22 12:42
SELECT REPLACE(\'100.00 GB\', \'%^(^-?\\d*\\.{0,1}\\d+$)%\', \'\');

I want to replace any markup between two

10条回答
  •  一个人的身影
    2020-11-22 13:10

    In a general sense, SQL Server does not support regular expressions and you cannot use them in the native T-SQL code.

    You could write a CLR function to do that. See here, for example.

提交回复
热议问题