Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
LIKE statement
Message
 
À
28/01/2004 09:08:02
Alvin Lourdes
Children and Youth Services Cluster
Toronto, Ontario, Canada
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
00871353
Message ID:
00871481
Vues:
13
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform