I need to get the last 14 characters of a urls relationship inside a .txt
$url = file_get_contents('https://www.site.com.br/relacao.txt');
Within relacao.txt I have:
www.site.com.br/aluno/s/francisco-augusto/11111111111111
www.site.com.br/aluno/s/francisco-fernandes/11111111111112
www.site.com.br/aluno/s/francisco-ocario/11111111111113
www.site.com.br/aluno/s/giselia-augusto/11111111111114
www.site.com.br/aluno/s/giselia-fernandes/11111111111115
Etc.. (várias outras)
And I would like to present it as follows: (only with the last numbers)
11111111111111
11111111111112
11111111111113
11111111111114
11111111111115
Etc...
I've tried it in several ways.
$url = preg_replace("/[^0-9]/", " ", $url);
But the result looks like this:
11111111111111 11111111111112 1111111111113 11111111111114 etc
.
I need each number to be on one line.
Can anyone help me?