At the end of the search string put a lower case i.
if (/$keyword/i)
{
#do some things here
}
Dylan
--
"Live as if your were to die tomorrow.
Learn as if you were to live forever."
- Mahatma Gandhi
-----Original Message-----
From: Chris Zampese [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 6:02 PM
To: [EMAIL PROTECTED]
Subject: matching regardless of case
I have written a basic search engine, but can not find how to match the
users input regardless of case.
#$keyword comes from html form input
while (<htmlfile>)
{
if (/$keyword/)
{
#do some things here
}
}
Any help is always appreciated,
many thanks,
Chris.
_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
--
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]