in reply to brackets help
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: brackets help
by eibwen (Friar) on May 10, 2005 at 04:14 UTC |