CMS Made Simple Forums
https://forum.cmsmadesimple.org/

multi-line e-mail address
https://forum.cmsmadesimple.org/viewtopic.php?f=4&t=61110
Page 1 of 1

Author:  Peciura [ Sun May 13, 2012 7:41 pm ]
Post subject:  multi-line e-mail address

This is a simple solution to split long email address to 2 or more lines. Idea is to insert zero-width spaces before symbols:
\$1:
._-@

\$1:
<div style='width:7em;'>
{'/([^\.\_\-\@])([\.\_\-\@])/'|preg_replace:'$1&#8203;$2':'very.long_email-address@spam.spm'}
</div>

Author:  Wishbone [ Mon May 14, 2012 4:03 pm ]
Post subject:  Re: multi-line e-mail address

Will this copy and paste OK? Or will it paste zero-length spaces?

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/