s{\b(mjd[-\w]*) \@ ( (?:\w+\.)? plover\.com \b) } {($a,$b) = ($1,$2); $a =~ m{-subscribe$} ? "$a\@$b" : "$a-id-$id\@$b" }gex; #### s{(.*?)(\`([^\']*)\')} {$pos += length $1; my $length = length $2; print ((' ' x ($pos)), "^", (' ' x ($length-2)), "^ ? "); my $r = lc ; $pos += $length; (substr($r,0,1) eq 'n') ? $& : "$1$3" }eg;