Re: [exim] String expansion: reversing a domain name?
Català
Dansk
Deutsch
Ελληνικά
English
Español
suomi
Français
Galego
magyar
Italiano
日本語
Nederlands
Polski
Português
Português Brasileiro
This message is part of the following thread:
the complete thread tree sorted by date
Lanny Jason Godsey at
2005-02-16 18:56
Philip Hazel at
2005-02-16 20:28
Author:
Tony Finch
Date:
2005-02-16 19:01
UTC
To:
Lanny Jason Godsey
CC:
Marc Sherman, 'Exim-users'
Subject:
Re: [exim] String expansion: reversing a domain name?
On Wed, 16 Feb 2005, Lanny Jason Godsey wrote:
> If you embed perl (I do), then this will work for you.
sub flipit { return join ".", reverse split /\./, @_; }
Tony.
--
<fanf@???> <dot@???>
http://dotat.at/
${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}