- Original Message -
From: "David Draley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 24, 2001 8:13 AM
Subject: reg exp match
> How would I print only the words that contain the letter "p" in a file???
> Right now I am only
--- David Draley <[EMAIL PROTECTED]> wrote:
> How would I print only the words that contain the letter "p" in a file???
> Right now I am only printing the entire lines that contain words with the
> letter "p".
>
> while ()
> {
> if(/[p]/)
>
How would I print only the words that contain the letter "p" in a file???
Right now I am only printing the entire lines that contain words with the
letter "p".
while ()
{
if(/[p]/)
{
print "$_";