Jenda Krynicky wrote:
> It might be quicker ...
>
> while (<>) {
> chomp;
> print "\tOK ($_)\n"
> if do {(local $_ = lc($_)) =~ tr/aeiou//dc;
> /a/ and /e/ and /i/ and /o/ and /u/
> }
> }
> ... the loop it could look like thi
--- Jeff 'japhy' Pinyan <[EMAIL PROTECTED]> wrote:
> On Feb 20, R. Joseph Newton said:
> >if (/a/i and /e/i and /i/i and /o/i and /u/i) {print;}
>
> If you really want a one-regex solution, here's one. I don't suggest
> its use, though.
>
> print if /(?=.*a)(?=.*e)(?=.*i)(?=.*o)(?=.*u)/i;
Lo
From: "R. Joseph Newton" <[EMAIL PROTECTED]>
> "John W. Krahn" wrote:
>
> > This is the closest but you need a separate match for each letter
> >
> > > # print $_ if /a\&e\&i\&o\&u/gi; # try a bitwise "and", with
> > > # escapes print $_ if !/[bcdfghjklmnpqrstvwxyz]/gi; # try
> > > #
On Feb 20, R. Joseph Newton said:
>if (/a/i and /e/i and /i/i and /o/i and /u/i) {print;}
If you really want a one-regex solution, here's one. I don't suggest its
use, though.
print if /(?=.*a)(?=.*e)(?=.*i)(?=.*o)(?=.*u)/i;
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobo
"John W. Krahn" wrote:
> This is the closest but you need a separate match for each letter
>
> > # print $_ if /a\&e\&i\&o\&u/gi; # try a bitwise "and", with escapes
> > # print $_ if !/[bcdfghjklmnpqrstvwxyz]/gi; # try not matching consonants
> > print $_ if /(a+)(e+)(i+)(o+)(
Gary Merrick wrote:
>
> >Homework help is a touchy subject on this list. What have you tried?
> >
> >Have you read:
> >perldoc perlop
> >perldoc perlretut
>
> Yow! Ok, I have now. I suppose I've missed something, since I haven't yet come
> up with a solution. :-\
>
> >One sticky point with an
>Homework help is a touchy subject on this list. What have you tried?
>
>Have you read:
>perldoc perlop
>perldoc perlretut
Yow! Ok, I have now. I suppose I've missed something, since I haven't yet come
up with a solution. :-\
>One sticky point with and/or is that you need to break complex
>sta
Gary Merrick wrote:
> Ok, so this is probably a stupid question, but I'm a newbie, and therefore
> stupid. :-] It'll take you about 5 seconds to figure this one out.
>
> I have an assignment that requires me to find words in a dictionary that contain
> all five vowels (a, e, i, o, and u). I've
Gary Merrick wrote:
Ok, so this is probably a stupid question, but I'm a newbie, and therefore
stupid. :-] It'll take you about 5 seconds to figure this one out.
I have an assignment that requires me to find words in a dictionary that contain
all five vowels (a, e, i, o, and u). I've figured o
Ok, so this is probably a stupid question, but I'm a newbie, and therefore
stupid. :-] It'll take you about 5 seconds to figure this one out.
I have an assignment that requires me to find words in a dictionary that contain
all five vowels (a, e, i, o, and u). I've figured out the logical "or" p
10 matches
Mail list logo