Implementing wildcard string search in LINQ C#.

--

Currently, we don't have any implementation of wildcard searching in LINQ C#.
But we can do this through a little trick, where you convert your wildcard search string into a regex and match that regex with data on which you want to perform a search.

Have a look at this piece of code here

Here we want to search strings from the list which have a at start and b in end and any of the characters can come in between. This is the one case, you can perform a search of any case that comes to your mind.

thanks hoping that was helpful for you.

--

--