--On Sonntag, 18. November 2001 17:31 -0900 Michael Fowler 
<[EMAIL PROTECTED]> wrote:

> On Fri, Nov 16, 2001 at 10:39:57PM +0100, birgit kellner wrote:
>> How can I filter out strings which contain two (or three) non-identical
>> capital letters in a row?
>>
>> my $string1 = "ABCD";
>> my $string2 = "AbCd";
>> my $string3 = "AABcD";
>>
>> Get $string1, discard $string2 and $string2.
>
> The description of what you what and what strings you wish discarded don't
> match.  You say you want to filter out strings that contain two
> non-identical capital letters; that would discard $string1 and $string3.
> $string1 contains two non-identical capital letters, "AB"; $string3
> contains two non-identical capital letters, "AB"; and to filter is to
> remove.

Thanks to all who responded; indeed, "filter out" was supposed to mean the 
opposite of "discard", *and* on top of that there was a typo in $string3, 
so apologies for the confusion.

Best regards,

Birgit Kellner

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to