non case sensitive indexOf?

Hey,
I need to be able to perform an indexOf function which is case insensitive. I have checked the documentation for the class string and have come up empty. Anyone know how to accomplish this?

Worth 500 points.

Thanks,
Rick
richardsimnettAsked:
Who is Participating?
 
aozarovConnect With a Mentor Commented:
No such. but you can do:
"xxxx".toLowerCase().indexOf("....".toLowerCase());
0
 
richardsimnettAuthor Commented:
aozarov,
color me stupid.. I didnt even think about that.

Thanks,
Rick
0
 
aozarovCommented:
NP. :-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.