What I would do is elliminate all the extra white space; s/\w/ /g; s/\r\n/ /g;
then do a match. /the lucky coin/; Dennis ----- Original Message ----- From: "mark sony" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 18, 2003 02 13 Subject: searching a string > Hi > i am searching for a string of consecutive words say "the lucky > coin" > These may be in one line or different line separated by blank > lines such as > > 1>the > > lucky coin > 2> the lucky > coin > > 3>the > > lucky coin > > Whats the way in perl ? > > mark > > _______________________________________________________________________ > Odomos - the only mosquito protection outside 4 walls - > Click here to know more! > http://r.rediff.com/r?http://clients.rediff.com/odomos/Odomos.htm&&odomos&&wn > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]