in reply to stripped punctuation
use strict; use warnings; my $stripped = qr/["!]/; my $word = '"Wilmer!"'; $word =~ s/^(?:$stripped)+(.*?)(?:$stripped)+$/$1/; print $word;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: stripped punctuation
by thealienz1 (Pilgrim) on Oct 06, 2005 at 20:20 UTC | |
by fishbot_v2 (Chaplain) on Oct 06, 2005 at 20:50 UTC | |
by thealienz1 (Pilgrim) on Oct 06, 2005 at 21:37 UTC | |
by fishbot_v2 (Chaplain) on Oct 06, 2005 at 21:45 UTC | |
by Nkuvu (Priest) on Oct 06, 2005 at 21:50 UTC |