Actually, there is a pattern that works, but there is a problem, I just can not figure out how to get everything from the first group.
var r = new Regex(@"^himikogp?:\/\/*(\/[\w- ./?%&=]*\/\w+\/)*([{0-9}]\w+)$", RegexOptions.Compiled | RegexOptions.IgnoreCase); var m = r.Match(command); Here is the line from which we get the groups: himikogp://install/app/987 I would like to form an IList<string> from the groups, or an array of strings. Thank.