C# Version Of SQL LIKE

后端 未结 20 2142
天涯浪人
天涯浪人 2020-11-29 02:12

Is there any way to search patterns in strings in C#?

Something like Sql LIKE would be very useful.

相关标签:
20条回答
  • I think you can use "a string.Contains("str") for this.

    it will search in a string to a patern, and result true is founded and false if not.

    0 讨论(0)
  • 2020-11-29 02:39

    Check out Regular Expressions.

    0 讨论(0)
提交回复
热议问题