• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 886
  • Last Modified:

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
0
richardsimnett
Asked:
richardsimnett
  • 2
1 Solution
 
aozarovCommented:
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

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now