0 Replies Latest reply on Mar 21, 2007 2:40 AM by KortonPartnership

    E4X and case-sensitivity

    KortonPartnership
      I'm using a regular expression search to find a city in a certain XML. This works fine: When I type 'Amsterdam' it finds all nodes with Amsterdam. But when I search for 'amsterdam' (so without the upper-case A) it finds nothing. My question is: How can I modify the expression below so it isn't case-sensitive anymore?

      tempXMLList = tempXMLList.( new RegExp( "^"+searchPlaceFrom.text+".*" ).test(from_place) );