# Text search that's not case sensitive

**URL:** <https://forum.kirupa.com/t/text-search-thats-not-case-sensitive/293575>\
**Category:** flash\
**Created:** [July 30, 2009, 10:18pm UTC](https://forum.kirupa.com/t/text-search-thats-not-case-sensitive/293575 "2009-07-30T22:18:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tpann](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@tpann](https://forum.kirupa.com/u/tpann)\
**Post date:** [July 30, 2009, 10:18pm UTC](https://forum.kirupa.com/t/text-search-thats-not-case-sensitive/293575/1 "2009-07-30T22:18:15Z")

</div>

I’m making a glossary. The glossary terms and definitions are in an xml file. I have read the terms (the words to be defined) into an array. I have included a search field, such that when I enter a term in the search field, a function loops through the array of terms and if the string I entered in the search field matches an item in the array, Flash traces out “match” (in this early part of coding).

Here is my problem: If one of the terms in the glossary is “India Pale Ale”, with capital letters, then a search on “india pale ale” turns up no matches.

How do I remove case sensitivity in this scenario?
