Below is the complete string
string = 05-28-2019 23:12:23 - Sora (Additional comments) Is this work really in progress? Please provide a realistic ETA. 05-22-2019 23:56:05 - Sam (Additional comments) Any idea on ETA?
I want to split into two different strings based on date and time
string 1 = 05-28-2019 23:12:23Sora (Additional comments) Is this work really in progress? Please provide a realistic ETA. string 2 = 05-22-2019 23:56:05 - Sam (Additional comments) Any idea on ETA?
I have used below code
<script>
var res = str.split(/^(\s\s\d+)\-(\d+)\-(\d+) (\d+)\:(\d+)\:(\d+\s\s)$/);
</script>