Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LIKE statement
Message
 
To
28/01/2004 09:08:02
Alvin Lourdes
Children and Youth Services Cluster
Toronto, Ontario, Canada
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
00871353
Message ID:
00871481
Views:
14
You can use the .NET Regular Expression parser for pattern searching.

The code in VB.NET to do what you want to do would be:
Imports System.Text.RegularExpressions
...
        if Regex.IsMatch("my Test is this", "\.*test\.*", RegexOptions.IgnoreCase) then
                ' we have a match'
        else
                ' we do not have a match
        end if
>Hi,
>
>Is there a like statement i can use in c#.
>
>I want to do this
>
>If(stringx LIKE 'TEST%')
>{
> do something
>}
>
>
>Thanks
Hector Correa
Previous
Reply
Map
View

Click here to load this message in the networking platform