P
PJC
Not sure if you can help but I'm having a little trouble with c# and
some regular expressions.
This is the example I am trying to use:
Regex r = new
Regex(@"^(?<proto>\w+)://[^/]+?(?<port>:\d+)?/",RegexOptions.Compiled);
return r.Match(url).Result("${proto}${port}");
For example, "http://www.contoso.com:8080/letters/readme.html" would
return "http:8080".
This works OK but I want to try to appy it to this string:
string subject = "SAP TMS Galileo Gateway Message Log (Langley
Development) (10\\15\\33)";
and extract Langley development then 10 then 15 and then 33.
Any help would be really appreciated, its just the Regex I can't get
right..
Thanks
some regular expressions.
This is the example I am trying to use:
Regex r = new
Regex(@"^(?<proto>\w+)://[^/]+?(?<port>:\d+)?/",RegexOptions.Compiled);
return r.Match(url).Result("${proto}${port}");
For example, "http://www.contoso.com:8080/letters/readme.html" would
return "http:8080".
This works OK but I want to try to appy it to this string:
string subject = "SAP TMS Galileo Gateway Message Log (Langley
Development) (10\\15\\33)";
and extract Langley development then 10 then 15 and then 33.
Any help would be really appreciated, its just the Regex I can't get
right..
Thanks