If you are simply looking for numeric values you can use something like \d or [0-] against request.url.path.
The output with these options will be a MV context variable as with the split. This may need to be a little more elaborate though in the case that the url is something like /id/name/accountID = /1/name32/2923
name23 would be caught here as well.
The split may provide a more efficient solution.