I have to check to see if a string meets a certain criteria. The number of strings can range from 10 - 100,000. What is the most efficient way to do this? I was going to use a regular expression but I am not sure at performance hits of this.
If you are thinking of doing a text editor type of search then a regular search will do, but if your doing some sort of booking system where you have to do multiple searches then I suggest sorting them first then perform tree searches on them. it all depends on what you�re doing