Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
$string = "---------xxxxxxxxxxxxxxx------yyyyyyyyyyyyyy--------"; $string =~ s/\A-+|-+$/?/g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: What is wrong here (Replacing Strin pieces)
by rjt (Curate) on Jul 16, 2013 at 11:22 UTC | |
by Anonymous Monk on Jul 16, 2013 at 11:40 UTC | |
|
Re: What is wrong here (Replacing Strin pieces)
by AnomalousMonk (Archbishop) on Jul 16, 2013 at 16:28 UTC | |
|
Re: What is wrong here (Replacing Strin pieces) (tr)
by Anonymous Monk on Jul 16, 2013 at 11:18 UTC | |
|
Re: What is wrong here (Replacing Strin pieces)
by choroba (Cardinal) on Jul 16, 2013 at 11:23 UTC | |
by AnomalousMonk (Archbishop) on Jul 16, 2013 at 16:23 UTC | |
|
Re: What is wrong here (Replacing Strin pieces)
by Laurent_R (Canon) on Jul 16, 2013 at 11:54 UTC | |
|
Re: What is wrong here (Replacing Strin pieces)
by kcott (Archbishop) on Jul 17, 2013 at 07:23 UTC |