in reply to line by line match on an array of strings

Hi, What exactly do you mean by "see if there's a match against any of the strings in the array"? Do you just have to check for "a" match? Just thinking loud (I don't know what the data is or where it came from), but would it be an option to sort the array, and look for matches using binary search? That would save you a fair lot of processing (assuming the sorting can be done offline). v.
  • Comment on Re: line by line match on an array of strings