Hope that helps...my $string = "Hello ( World )."; $string =~ s/\(\s*//g; # remove opening bracket followed by spaces $string =~ s/\s*\)//g; # remove closing bracket preceded by space $string =~ s/\s/_/g; # replace spaces still left with underscores $string =~ s/\.$//; # remove ending period also
In reply to Re: brackets help
by etm117
in thread brackets help
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |