smartperl has asked for the wisdom of the Perl Monks concerning the following question:
Hi geeks, I need substring of an orinal string with a range as offset. I will explain. Say I have a range "11-29,39-72,99-100,103,107" in some part of program. I need to extract substring corresponding to theses ranges. If my strign ABCDEFGH........... so on, if need substring which strats at 11th position to 29th, then from 39h to 72nd, then the one at 103rd position and so. Is there any way to sort this out. any cpan module available? thanks in advance
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: substring within range
by GrandFather (Saint) on Feb 04, 2015 at 05:38 UTC | |
|
Re: substring within range
by Laurent_R (Canon) on Feb 04, 2015 at 07:37 UTC | |
|
Re: substring within range
by roboticus (Chancellor) on Feb 04, 2015 at 12:59 UTC | |
|
Re: substring within range
by i5513 (Pilgrim) on Feb 04, 2015 at 09:43 UTC | |
|
Re: substring within range
by Laurent_R (Canon) on Feb 04, 2015 at 18:49 UTC | |
|
Re: substring within range
by smartperl (Initiate) on Feb 09, 2015 at 06:25 UTC |