Re: reg exp match

2001-09-24 Thread Jarrod Overson
- 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

Re: reg exp match

2001-09-24 Thread Curtis Poe
--- 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]/) >

reg exp match

2001-09-24 Thread David Draley
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 "$_";