hi,
I am using postgres 7.4.6 and java 1.4.
I have created a table, like
create table usr (usr_id varchar(15), usr_filename_pattern varchar(1024));
insert into usr values ('A', '(d*-d*-d)');
insert into usr values ('B', '(dd-dd-dd)');
insert into usr values ('C', '(d*-d*-d)|(dd-dd-dd)');
i.e. value of usr_id = 'A' and usr_filename_pattern = '(d*-d*-d)'
i want to replace
'(d*-d*-d)' with '(\\d*-\\d*-\\d)'
using pattern and matcher method of java.
what is the value of regExp for matching
String fileNamePattern = '(d*-d*-d)|(dd-dd-dd)';
pl. help me out...
Thanks in advanced..
ketan
I am using postgres 7.4.6 and java 1.4.
I have created a table, like
create table usr (usr_id varchar(15), usr_filename_pattern varchar(1024));
insert into usr values ('A', '(d*-d*-d)');
insert into usr values ('B', '(dd-dd-dd)');
insert into usr values ('C', '(d*-d*-d)|(dd-dd-dd)');
i.e. value of usr_id = 'A' and usr_filename_pattern = '(d*-d*-d)'
i want to replace
'(d*-d*-d)' with '(\\d*-\\d*-\\d)'
using pattern and matcher method of java.
what is the value of regExp for matching
String fileNamePattern = '(d*-d*-d)|(dd-dd-dd)';
pl. help me out...
Thanks in advanced..
ketan