Ben aşağıdaki gibi bir URL PHP ile bir dizi var:
http://example.com/apps/1235554/
http://example.com/apps/apple/
http://example.com/apps/126734
http://example.com/images/a.jpg
http://example.com/images/b.jpg
http://example.com/apps/2331234/
http://example.com/apps/orange/
Nasıl bu adresler ayırmak ve Regex kullanarak başka diziye onları zorlayabilir:
http://example.com/apps/1235554/
http://example.com/apps/126734
http://example.com/apps/2331234/
Sadece apps/{number}/ ile url ve apps/{number} seçilmelidir.