string whatYouNeed = "/adgadgdfhdsdfgsadfgdsg_t_54654321654".Split('_').Last();
Or
string whatYouNeed = "<a href=\"/adgadgdfhdsdfgsadfgdsg_t_54654321654\" title=\"Title\">"
.Split('_')
.Last()
.Split(new string[] {"\""},StringSplitOptions.RemoveEmptyEntries)
.First();
But If you want to work with HTML content you better use
Html Agility Pack
Check this question which some what similar to this and by using html agility pack
HtmlDocument htmlDoc = new HtmlDocument();
htmlDoc.Load("test.html");
var link = htmlDoc.DocumentNode
.Descendants("a")
.First(); // assume it is First link tag what you need
string hrefValue = link.Attributes["href"].Value;
string whatYouNeed = hrefValue.Split('_').Last();
Answers to your comments
but what if I have the source code inside an string and not in a
test.html document?
You can load the html as below
HtmlDocument doc = new HtmlDocument();
doc.LoadHtml(html);
Also there's dozens of "<a href"'s
with different numbers in them in
the source code, I don't need a specific one, just one of them.
var links = htmlDoc.DocumentNode
.Descendants("a").ToList();
above will return all the links in the page you can get any item you want like links[1]
or links[3]
etc ...