You can use the $location service's $location#path() function:
# given: url = http://www.something.com/project/edit/987654321
$location.path().split('/').pop();
However, it sounds like you have a routing issue. Check out the Angular Tutorial on Routing, which shows how to correctly use $routeProvider routes in your app.js configuration. From the tutorial:
phonecatApp.config(['$routeProvider',
function($routeProvider) {
$routeProvider.
when('/phones/:phoneId', {
templateUrl: 'partials/phone-detail.html',
controller: 'PhoneDetailCtrl'
})
.otherwise( ...) //omitting remainder of cut/paste
So your app.js would have a route definition like:
ender2050App.config(['$routeProvider',
function($routeProvider) {
$routeProvider.
when('/project/edit/:id', {
templateUrl: 'partials/editor.html',
controller: 'EditorCtrl'
})
And your controller file (i.e., controllers.js) would have the EditorCtrl that injects the $routeParams service to access the id variable.
If you need a more customized parsing option, check out the $parse service.