Find (string)

  • Thread starter Thread starter csharpula csharp
  • Start date Start date
C

csharpula csharp

Hello,
I want to implement "wild card" search by searching files with *name*
criteria.
What is the best way? Should I do foreach to all names or maybe there is
a better way?
 
csharpula,

As often is there in this no best way.

If your search criteria is very complex than use the Regex.

If your string criteria is one character, then the indexOf

You know if there was a best way, all those possibilities where not created.

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top