parse a string and truncate it
- by Sivart
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...