Regexp, exclusions, and priorities

Hi

Can someone clarify how freepbx will handle multiple inbound routes with conflicting DDIs?

My real world example is that we have 200 DDIs. We want them all to go to one department with the exception of 3 of them.

I want to handle the bulk of them using a DDI regexp of something like 01234567X. It would be useful if I can then create individual inbound route entries for each of the other DDIs (0123456789 for example).

Will that work? Will Freepbx just use the first DDI it comes to or will it know to try the exact match before looking for the wildcard match?

Olly