On 2/10/2010 1:38 AM, Andy Smith wrote:
hello,

maybe someone here can help. I am trying to rewrite a certain set of  To
address with regex when they are sent outbound from my mail server.

I am trying to do the following:

Can you rewrite this to  123456789@ smscountry.net
<http://smscountry.net> to [email protected]
<mailto:[email protected]>.

The number string is very dynamic and will be many different combinations.


is there a way to do this with regex.  I have tried /@smscountry\.net/
[email protected] <mailto:[email protected]> but this drops
the number sequence.

Any help would be appreciated.

Andy

When posting from gmail, please click the [Plain Text] button.

To add the ".mydomain" tag to any number:
/^([0-9]+)@smscountry\.net$/  [email protected]

If you need to limit the rewriting to a specific set of numbers, probably best to list each number individually.

  -- Noel Jones

Reply via email to