Re: [exim] String expansion: reversing a domain name?

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Tony Finch
Fecha:  
A: Lanny Jason Godsey
Cc: Marc Sherman, 'Exim-users'
Asunto: 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}}