domenicodl
Programmer
Hi,
I want to replace "(" and ")" with "". Suppose that you have a string like 00(r1) I would like to have 00r1.
To this end, I wrote:
regexp = "[\)\)]";
sub(regexp,"",r);
where r is the variable where I store the string 00(r1).
With the former code, I get 00(r1) -> 00(r1
I also tried with
regexp = "/[\(\)]/"
with the same result.
Thank you in advance
I want to replace "(" and ")" with "". Suppose that you have a string like 00(r1) I would like to have 00r1.
To this end, I wrote:
regexp = "[\)\)]";
sub(regexp,"",r);
where r is the variable where I store the string 00(r1).
With the former code, I get 00(r1) -> 00(r1
I also tried with
regexp = "/[\(\)]/"
with the same result.
Thank you in advance