The separate pattern as mentioned by @lgaetz should actually be a + in the prefix and leave the X. in the match. in order to canonicalise the number as mentioned by @david55.
Basically your outbound routes should be designed to get all of your numbers into a single standardized format before it is passed to the trunk(s).