in reply to Re: cleaving a sequence with specific alphabets
in thread cleaving a sequence with specific alphabets
Probably not as good as the split solution but perhaps a little easier to read if you recognise the idiom:
@arr = $string =~ m/(.*?[KR])(?!P)/gs;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: cleaving a sequence with specific alphabets
by mwah (Hermit) on May 21, 2008 at 12:10 UTC | |
by tachyon-II (Chaplain) on May 21, 2008 at 16:30 UTC | |
by ikegami (Patriarch) on May 21, 2008 at 17:00 UTC | |
by mwah (Hermit) on May 21, 2008 at 17:21 UTC | |
by tachyon-II (Chaplain) on May 22, 2008 at 00:04 UTC |