对于正则表达式我不太了解,我想根据流动指令尝试解析数据库中的sting。 我知道我需要使用CLR但开始我想学习正则表达式MS SQL中的正则表达式
表中数据的样子
create table #tempTBL (opis varchar(40))
go
insert into #tempTBL
select 'C 136'
union
select 'C 145'
union
select 'C146'
union
select 'AK C 182'
union
select 'C 277'
union
select 'C-240'
union
select 'ISPRAVKA PO C 241'
,并选择刺看起来像
Select
reverse(
rtrim(
ltrim(
replace(
(substring
(reverse(opis)
,0
,charindex(
'C',reverse(opis)
)
)
)
,'-',' ')
)
)
) as jci
from #tempTBL
应该如何看起来像我的C#代码重复使用正则表达式