I have a page with links like:
<a class="mod-articles-category-title " href="curso-bsc/82-balanced-scorecard/o-bsc-uma-ferramenta-para-melhorar-a-performance-da-organizacao/377-responsabilizacao-e-trabalho-de-equipa">
<a class="mod-articles-category-title " href="curso-bsc/82-balanced-scorecard/o-bsc-uma-ferramenta-para-melhorar-a-performance-da-organizacao/378-recompensas-e-incentivos-baseados-no-bsc">
<a class="mod-articles-category-title " href="curso-bsc/82-balanced-scorecard/o-bsc-uma-ferramenta-para-melhorar-a-performance-da-organizacao/99-vantagens-do-bsc-gestao-da-mudanca">
I need an array with the numbers after the last slash (/) and the following minus (-):
"377", "378", "99"
I'm using:
links=$('.mod-articles-category-title').attr('href');
But I'm missing the expression to get those numbers into the array. Can someone help?