If the text is contained in $text, then:

if ($text =~ /the\s+lucky\s+coin/ism) {
print "ok";
}

Teddy,
Teddy's Center: http://teddy.fcc.ro/
Email: [EMAIL PROTECTED]

----- Original Message -----
From: "mark sony" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 18, 2003 1:13 PM
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&&w
n


--
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]

Reply via email to