This is a discussion on "'group' matches? Perl" within the Other Programming Languages section. This forum, and the thread "'group' matches? Perl are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
'group' matches? Perl
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
'group' matches? Perl
Hi all!
I have a string : $seq="IIIIIMMMMMMMMMMMOOOOOOOOOOOOOOOOMMMMMMMMMMMM MIIIIIMMMMMMMMMOOOOOOOOOOOOOOMMMMMMMMMMMMMIIIMMMMM MMMMMMOOOOOOOOOOOOOOOMMMMMMMMMMMIIIIIIMMMMMMMMMMMM MOOOOOOOOOOOOOOOOOOOOOOOMMMMMMMIIIMMMMMMMMMOOOOOOO OOOOOOOOOOOOOOOOOOOOMMMMMMMIIIIMMMMMMMMMMMOOOOOOOO OOOOOOOOOOOOOMMMMMMMIIIMMMMMMMMMOOOOOOOOOOOOOOOOOO OOOOOOOMMMMMMMMMIIIMMMMMMMMMMMOOOOOOOOOOOOOOOOOMMM MMMMMI"; and I want to find all groups of MMMMMM. I don't want to find only every position in the string that has 'M', i.e. pos6, pos7, pos8, pos9 etc but I want to have something like: 1st group : pos 7-15 2nd group : pos 23-34 3rd group : pos 45-55 etc |
|
|
|
#2
|
|||
|
|||
|
Re: 'group' matches? Perl
I get
-- Graham |
![]() |
| Tags |
| group, matches, perl |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| End Time Army Youth Group | thewebkid | Free Web Site Critique | 2 | Oct 25th, 2007 04:29 |
| Myers Communications Group | Geoff Myers | Free Web Site Critique | 2 | Apr 15th, 2007 00:09 |
| GROUP BY and dates in SQL (again) | spinal007 | Databases | 4 | Dec 13th, 2004 17:26 |