I have a requirement where I need to get the last HREF in the HTML code, means getting the HREF in the footer of the page.
Is there any direct regular expression for the
No regex, use the :last jQuery selector instead. demo :
foo bar var link = $("a:last");