Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Regex problem
Message
 
À
18/08/2006 08:31:17
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Divers
Thread ID:
01146684
Message ID:
01146691
Vues:
13
Hi Alex, I am now using the FileExtension property but was curious to know why the RegEx was failing, it turned out I needed to specify IgnoreCase in the c'tor of the RegEx, as my files for some reason are uppercase. (the /i is the standard for ignoring case in Perl, PHP etc.. Regexes - have MS done it again ? )
Regex rx = new Regex(".ogg", RegexOptions.IgnoreCase);
all is now well, thanks for your time
Regards,
Peter J. Kane



Pete
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform