luthor has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w # use strict; my $count = (); my $seq = " TTHTT SHHHHHHHHH55HHHHTT HHTHHHH5HHHHH "; while ($seq =~/H{1,}5{1,}H{1,}/g) { $count++; } print "Sequence: $seq\n"; print "Count: $count\n"; exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Pattern Matching with REGEXP: Is the match position trackable?
by belg4mit (Prior) on Sep 18, 2002 at 01:01 UTC | |
|
Re: Pattern Matching with REGEXP: Is the match position trackable?
by jsprat (Curate) on Sep 18, 2002 at 01:25 UTC | |
by belg4mit (Prior) on Sep 18, 2002 at 13:48 UTC | |
by luthor (Initiate) on Sep 18, 2002 at 16:17 UTC | |
|
Re: Pattern Matching with REGEXP: Is the match position trackable?
by sauoq (Abbot) on Sep 18, 2002 at 01:06 UTC | |
by Anonymous Monk on Sep 18, 2002 at 01:47 UTC |