Stuart White wrote:
> Geez, I can't recall them covering (?: ) in my > books...D'oh! The part about it grouping and > capturing things makes sense, as it's the "cousin" of > ( ). The part about being able to include the |'s > doesn't. I found out, without knowing at the time, > that the parentheses breakdown with |'s. I didn't > know it at the time, but when I put the ORs in the > parentheses and ran the program, I just got the > command prompt, no output. Greetings! E:\d_drive\perlStuff>perl -w my $string = 'Yada, yuda, heyho, whuzit'; my $regex = '(Y.{3}).*?(y.{3}).*?(boingo|eekers|heyho).*?(\w*)$'; if ($string =~ /$regex/i) { print "$1\n$2\n$3\n$4\n"; } ^Z Yada yuda heyho whuzit So the problem may lie elsewhere in the match. Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>