sql - Textpad Regular Expression: Replace a group of 3 characters with 5 new lines -
I want to beautify SQL code using this tool. Before this tool will accept it, I will say "& lt; * & gt;" I want to change each example (except double quotes) "\ n \ n \ n \ n \ n" (5 new lines) using the Change in TextPad feature and choose regular expressions. How can I do this?
< I2b2demodata.observation_fact where in concept_cd (selection_collect_connect_select_fact_fact_fact_act_cnpt_pat_enct_idx) * / patient_num, select panel_count form i2b2demodata.QUERY_GLOBAL_TEMP (patient_num, panel_count) in patient_num, 1 from i2b2demodata.concept_dimension Where '\ i2b2 \ report \%' like concept_path) and (valtype_cd = 'b' and (obsession_blob, 'rheumatism')> 0) group by patient_num) T & LT; * & Gt; Insert in i2b2demodata.dx (patient_name) * from (i2b2demodata.QUERY_GLOBAL_TEMP, select patient_name, where panel_ count = 1) q & lt; * & Gt; Insert I2b2demodata.MASTER_QUERY_GLOBAL_TEMP (master_id, Patient_Name, Level_NO), select 'MasterDead: 22', Patient_Name, 0 to i2b2demodata.QUERY_GLOBAL_TEMP, where patient_name (choose from i2b2demodata.QUERY_GLOBAL_TEMP from patient_num where panel_count = 1) & lt; * & Gt; Delete I2b2demodata.DX & lt; * & Gt; I2b2demodata.QUERY_GLOBAL_TEMP & lt; * & Gt; Delete I2b2demodata.QUERY_GLOBAL_TEMP (patient_num, panel_count), choose patient_num, from 1 to panel_count (select / * + index (object_factually fact_cnpt_pat_enct_idx) * / patient_num i2b2demodata.observation_fact where concept_cd IN (concept_cd select from i2b2demodata.concept_dimension) Where concept_path like 'i2b2 \ Diagnoses. Digestive system (520-579) \%') by group patient_num) to match regex & lt; * & Gt; & lt; \ * & Gt; .
Comments
Post a Comment