Excluding portions of urls which are search engine friendly

Hi everyone,

I have done some searching but maybe I am not being generic enough in my search terms, finding no results that answered my question.

Is it possible to exclude entire portions of a url?

For example, I have many urls that look similar to the following:

example.com/user/edit/1A23AC42E245414F8E4576DD13701D21
example.com/profile/edit/1D67AD42E245414D8A4576C213501711

Can I exclude something like this:

example.com/user/edit/*
example.com/profile/edit/*

This way I get to track the page view and keep my analytics clean. Right now those pages are individually tracked pages that might be edited once every 3 months across all my users.

I am using codeignitor and segment 3 of the url is most of the time used for ID numbers in my case, depending on what area the user is on the website.

Thanks,