Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Regex problem
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Miscellaneous
Thread ID:
01146684
Message ID:
01146692
Views:
14
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
Previous
Reply
Map
View

Click here to load this message in the networking platform