parse a string and truncate it

Posted by Sivart on Stack Overflow See other posts from Stack Overflow or by Sivart
Published on 2009-09-08T21:54:37Z Indexed on 2010/04/13 2:02 UTC
Read the original article Hit count: 315

Filed under:

I want to break the following string at the word To and then truncate the email address that follows at 15 characters using JavaScript. This is the sentence:

Please email this card to [email protected]

It should like like this:

Please email this card 
to email@emailadd...

© Stack Overflow or respective owner

Related posts about JavaScript