On May 14, Jorge Goncalvez said: >SceInfGuest = "Guest"
>my $HISEFILE= "c:/hisecdc.inf"; > open HISE,"< $HISEFILE" > or die "je ne peux ouvrir $HISEFILE :$!"; > while (<HISE>) { > if (/SceInfGuest\s+:\s([0-9a-z]+);/i) { > print "found $1 \n"; > > } > } > close HISE; > >It didn't worked why? What's wrong in my code? The string does not have a ':' or a ';' in it. Your regex is simply trying to match the wrong characters. /SceInfGuest\s+=\s+"(.*?)"/ should work. -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ ** Look for "Regular Expressions in Perl" published by Manning, in 2002 ** <stu> what does y/// stand for? <tenderpuss> why, yansliterate of course. [ I'm looking for programming work. If you like my work, let me know. ] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]