Updated: Swapped to /s modifier to allow for multiple lines.use strict; use warnings; my $string = 'this is (testing 123(test%^*&()() fghfgh(in)))*&^@#%$))))(( ((( (g) 123)a test'; $string =~ s/\(.*\)//gs; print $string;
In reply to Re: Strip brackets and contents from string
by james28909
in thread Strip brackets and contents from string
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |