Regex urlRegex = new Regex(@"(?:^|\?|&)courseid=(\d*)(?:&|$)");........courseId = m.Groups[1].Value;
/courseId=(\d+)/