> Hi, I have a file like this: > ........... > SceInfEveryone = "Everyone" > SceInfGuests = "Guests" > SceInfGuest = "Guest" > SceInfPowerUsers = "Power Users" > SceInfPrintOp = "Print Operators" > ...... > > And I wanted to extract Guest (without the quotes)i tried this: > > 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) {
Where does the ':' come from? And the ';'? print $1 if (/sceinfguest([a-z])/i) Untested though. Tor -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]