Search found 1 match
- Mon Aug 29, 2016 2:56 pm
- Forum: Challenges Solved
- Topic: Lorem Ipsum
- Replies: 34
- Views: 8778
Javascript Solution
Thought I'ld post my quick Javascript solution which you can run directly in browser.. var preInner = pre.innerHTML.replace(/[.,\/#!$%\^&\*;:{}=\-_`~()]/g,""); // Remove punctuation. preInner = preInner.replace(/\r?\n|\r/g, " "); // Remove all newline carriages var myArray = ...