expression
/CREATE\s(TABLE)\s(#|@)+(.*?)\s\((.*)\)+(;|)/g
matches
O - CREATE TABLE #TPE_04C (C_COA CHAR(3));
O - CREATE TABLE #TFP_14D (C_UNT CHAR(3), C_COA CHAR(3), C_FINC CHAR(5), P_COL SMALLINT, A_PN MONEY)
O - CREATE TABLE #TFP_14D1 (S_SORT INT, CN_COA VARCHAR(50), C_FINC CHAR(5), P_COL SMALLINT, A_PN MONEY)
X - CREATE INDEX #XIE1TFP_14D1 ON #TFP_14D1 (C_FINC)
demo link
https://regexr.com/44pck
'Web_Application > C#' 카테고리의 다른 글
[regex][mssql] INSERT SELECT, SELECT (0) | 2018.12.14 |
---|---|
[regex][mssql] INSERT | INSERT INTO (0) | 2018.12.14 |
[regex][mssql] CREATE INDEX (0) | 2018.12.14 |
[regex][c#] new line (0) | 2018.12.14 |
[mssql][winform][ado.net] SSMS 와 Application 에서 쿼리 실행 시간이 너무 많이 차이 날때 (0) | 2018.12.08 |