Regex에 대해 많이 알지는 않습니다. 흐르는 지침에 따라 데이터베이스에서 스팅을 파싱하려고합니다. 내가 CLR을 사용하지만 테이블이MS SQL의 Regex 표현
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# 코드를 정규식을 사용하여 이것을 반복합니다