• Post Reply Bookmark Topic Watch Topic
  • New Topic

Pattern Matching  RSS feed

 
Dan Peterson
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Leonardo Pjetri
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Paul Clapham
Sheriff
Posts: 22719
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the most efficient way to do this?
That would depend on the strings and the criteria. More details might produce a better answer.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!