(redirected to Perl Beginners by James)

Begin forwarded message:

From: "Marcelo" <[EMAIL PROTECTED]>
Date: February 3, 2004 1:56:20 PM CST
To: "James Edward Gray II" <[EMAIL PROTECTED]>
Subject: Re: Help with files

Found the way to delete duplicates on an array (using hash keys), but the
other problem is:


if I have linse on a file that say:

username:password
sometx:uilokj

how do i delete the lines that don't have, say, 6 letters, followed by a :
and then another 6 letters.


tried this re, but it won't work:

/\w{6}:\w{6}/

That expression will match 6 word characters followed by a : followed by six word characters. Perhaps you meant to search and replace?


s/\w{6}:\w{6}//g;

Really, if you post your code, there's a much better chance we can help you.

James


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to