virudinesh has asked for the wisdom of the Perl Monks concerning the following question:
$f="chapter 1,2,3"; if($f=~m/chap( |[a-z])*([0-9|,0-9]+)/ i) { print "$f\n" ; #for split /,/,$2; } output needs : chapter 1,chapter 2,chapter 3 but does't work...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how to fetch 1,2,3, from chapter
by choroba (Cardinal) on Apr 26, 2013 at 10:12 UTC | |
|
Re: how to fetch 1,2,3, from chapter
by hdb (Monsignor) on Apr 26, 2013 at 11:01 UTC | |
|
Re: how to fetch 1,2,3, from chapter
by DrHyde (Prior) on Apr 26, 2013 at 10:31 UTC | |
|
Re: how to fetch 1,2,3, from chapter
by Random_Walk (Prior) on Apr 26, 2013 at 13:05 UTC | |
|
Re: how to fetch 1,2,3, from chapter
by ww (Archbishop) on Apr 26, 2013 at 17:29 UTC | |
|
Re: how to fetch 1,2,3, from chapter
by ww (Archbishop) on Apr 27, 2013 at 01:44 UTC |