JSFiddle - React, Tailwind, and code Playground
JavaScript
var text = "5.21o-o11.0o-o4";
var split = text.split("o-o");
alert(split[0] + ', ' + split[1] + ', ' + split[2]);
var text = "5.21o-o11.0o-o4";
var split = text.split("o-o");
alert(split[0] + ', ' + split[1] + ', ' + split[2]);