How about a regular expression:

re = /Match/i;
str = "I am searching for matches";
myIndex = str.search(re);

I'd like to see this done more concisely. Anyone else have a good one?

jon

-----Original Message-----
From: David Collie (itndac) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 13, 2003 5:41 AM
To: CF-Talk
Subject: RE: Javascript


could try (and not tested)

var myString = "test";
var myIndex = myString.toUpperCase.indexOf("ST");

Not sure how to do it without case, anybody else?

DC

-----Original Message-----
From: Allan Cliff
Sent: 13 August 2003 10:29
To: CF-Talk
Subject: Javascript


Can anyone tell me the javascript equivalent of FindNoCase(). ?

Thanks

Allan
                                

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to