Equivalent of the VB.NET -- Like -- operator

  • Thread starter Thread starter Lloyd Sheen
  • Start date Start date
L

Lloyd Sheen

Is there an equivalent of the LIKE operator in VB.NET for C#? Can't find
anything in docs. Would I have to use regular expressions ?

Lloyd Sheen
 
Lloyd said:
Is there an equivalent of the LIKE operator in VB.NET for C#? Can't find
anything in docs. Would I have to use regular expressions ?

I think so, RegEx.IsMatch(inputString, regexPatternString) should do.
 
Lloyd,
Would I have to use regular expressions ?

Yes, unless you want to reference Microsoft.VisualBasic.dll and call
the implementation of Like that way.



Mattias
 

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