I wanna replace the following text as "nrmuser".gi_interface_s cmdbs04,only keep part of the first line and part of the last line.
but the following regular expression cann't find anything.
create table(.*)\p(.*\p)*.*cmdbs04
what's wrong with the expression?thanks a lot for your help.
create table "nrmuser".gi_interface_s
(
serial_id integer not null ,
int_id integer not null ,
port_no integer not null ,
ip_addr varchar(32),
ethernet_mode varchar(64),
timestamp datetime year to second,
first_result datetime year to second not null ,
compress_date date not null ,
s_month smallint not null ,
unique (compress_date,int_id,port_no) ,
unique (compress_date,serial_id)
)
fragment by expression
(s_month = 1 ) in cmdbs01 ,
(s_month = 2 ) in cmdbs02 ,
(s_month = 3 ) in cmdbs03 ,
(s_month = 4 ) in cmdbs04 ,
but the following regular expression cann't find anything.
create table(.*)\p(.*\p)*.*cmdbs04
what's wrong with the expression?thanks a lot for your help.
create table "nrmuser".gi_interface_s
(
serial_id integer not null ,
int_id integer not null ,
port_no integer not null ,
ip_addr varchar(32),
ethernet_mode varchar(64),
timestamp datetime year to second,
first_result datetime year to second not null ,
compress_date date not null ,
s_month smallint not null ,
unique (compress_date,int_id,port_no) ,
unique (compress_date,serial_id)
)
fragment by expression
(s_month = 1 ) in cmdbs01 ,
(s_month = 2 ) in cmdbs02 ,
(s_month = 3 ) in cmdbs03 ,
(s_month = 4 ) in cmdbs04 ,