FAQ / Routing for local delivery / Q0421



Q0421

Question

I can't get a regular expression to work in a local_parts option on one of my routers.

Answer

Have you remembered to protect any backslash and dollar characters in your regex from unwanted expansion? The easiest way is to use the \N facility, like this:

local_parts = \N^0740\d{6}\N



FAQ / Routing for local delivery / Q0421


CategoryFrequentlyAskedQuestions

EximWiki: FAQ/Routing_for_local_delivery/Q0421 (last edited 2008-09-25 11:39:33 by localhost)