JSFiddle - React, Tailwind, and code Playground

by madhugb

JavaScript

var reg = /([^\.\?\!\n]+|[\.\?\!][^\s'"]|\.\s+[a-z0-9])+([\.\?\!)\n]+(['"]\s)*|$)/g;
var mail = "Hi everybody! \

Since most of us are lurking for some sexy name for product . We are also undergoing a similar hardship with getting some good name. I came across many names, how does appscanned.com sounds? What we are building can be used for certification for mobile apps at later stage, but is a scanner at present that scans for bugs. So it can serve both the purpose. Thats my go for it. I want all of your view about it or any other suggestion if you have will help us as well.\

Thanks,\
Harshit Agarwal \
Co-Founder XySec Labs,\
(m)+65-86538627";

$(document).ready(function(){
    var sentences = mail.match(reg);    
    
    $.each(sentences,function(i,v){
      $('body').append($('<p>').append(v));
    });
    
});