Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
and you wanted to pick only the string that contains A, B and C (namely $a), what must you insert in the pattern match? Is there a way to search only for the string that has the letters A,B,C and no other letter?$a='ABCAAAABBBCCCCCAAABBBCCC'; $b='ASRGRTGRT89579843rrrrrr';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Match only certain characters?
by Cristoforo (Curate) on Nov 08, 2009 at 23:44 UTC | |
|
Re: Match only certain characters?
by keszler (Priest) on Nov 08, 2009 at 23:40 UTC | |
|
Re: Match only certain characters?
by AnomalousMonk (Archbishop) on Nov 09, 2009 at 00:50 UTC | |
|
Re: Match only certain characters?
by biohisham (Priest) on Nov 09, 2009 at 00:05 UTC | |
|
Re: Match only certain characters?
by Marshall (Canon) on Nov 09, 2009 at 01:43 UTC | |
by AnomalousMonk (Archbishop) on Nov 09, 2009 at 07:23 UTC | |
|
Re: Match only certain characters?
by EvanCarroll (Chaplain) on Nov 08, 2009 at 23:43 UTC | |
|
Re: Match only certain characters?
by jffry (Hermit) on Nov 09, 2009 at 08:03 UTC | |
by AnomalousMonk (Archbishop) on Nov 09, 2009 at 18:18 UTC | |
by jffry (Hermit) on Nov 09, 2009 at 22:05 UTC |