I'm a new developer in C# and I'm migrating code from VB.NET to C#. But the LIKE operator is not working in C#, is there another one with the same function?
The VB.NET code I need to convert looks like this::
If (item Like "[A-D]") Then End If If (item Like "[E-H]") Then End If If (item Like "[I-M]") Then End If If (item Like "[N-V]") Then End If
Regex.IsMatchitemhave? Is it always a single-character string?LikeOperatorstackoverflow.com/a/24812880/9925593