Ah awesome, you guys rock! Don't know how I did not think of doing that.
Thanks a million guys!
Once last question.
In some instances the file will have an entry twice in the original array .how can I match to print the string once but also print that I found it twice.
for instance
found 12345 (2 matches)