Thread View: borland.public.csharpbuilder.language.csharp
1 messages
1 total messages
Started by Peter Jones
Thu, 13 Jul 2006 03:06
Regular Expression for URI
Author: Peter Jones
Date: Thu, 13 Jul 2006 03:06
Date: Thu, 13 Jul 2006 03:06
19 lines
1432 bytes
1432 bytes
Hi,
I googled the regular expression for checking webservice URI, and
got the following result. But when I tried it, it seems like not
working as expected.
//*************************
string InvalidURI = "InvalidURI";
string RegexURI = "(([a-zA-Z][0-9a-zA-Z+\\-\\.]*:)?/{0,2}[0-9a-zA-Z;/?:@&=+$\\.\\-_!~*'()%]+)?(#[0-9a-zA-Z;/?:@&=+$\\.\\-_!~*'()%]+)?";
return Regex.IsMatch(InvalidURI, RegexURI); //return true, but false expected)
//*************************
Does anyone have an idea on what regular expression should be
used for URI?
Thanks,
Peter
I googled it and found the following expression. But when I tried to check, it seems like not working
But when I tried:
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads