Untitled
a guest |
09/24/13 10:16:31 AM UTC |
0 ⭐ |
49 👁️ |
Never ⏰ |
[]
www.example.com/a-292-some-text-here // 292www.example.com/a-2-asdfss // 2www.example.com/a-44-333 // 44
string input = "www.example.com/a-292-some-text-here";Match match = Regex.Match(input, @"d+");if (match.Success){ int id = int.Parse(match.Value); // Use the id...}else{ // Error!}
Comments