Regex to get article ID from url

Posted by Blankman on Stack Overflow See other posts from Stack Overflow or by Blankman
Published on 2010-04-06T21:05:00Z Indexed on 2010/04/06 21:13 UTC
Read the original article Hit count: 366

Filed under:
|

My url looks like:

www.example.com/a-292-some-text-here  // 292
www.example.com/a-2-asdfss       // 2
www.example.com/a-44-333      // 44

I need a regex to get the 292 from the url.

The ID will always be an integer.

i am using C#.

© Stack Overflow or respective owner

Related posts about c#

Related posts about regex