// title: some missing string operations: split on regex; replace regex; between regex // author: 56228375 // description: // some useful string operations which appear to be absent in sclang // code: // note: first install quark https://github.com/shimpe/scstringext // using Quarks.install("https://github.com/shimpe/scstringext"); // then you should be be able to run the following examples ( "abcdefabcdef".splitRegex("bcd"); // yields [ "a", "efa", "ef" ] "12-05-1984".replaceRegex("\\d+", "x"); // yields "x-x-x" "12-05-1984".splitRegex("-"); // yields [ "12", "05", "1984" ] "appple".replaceRegex("p+", "pp"); // yields "apple" " a=b c=d e=f g=h i=j".betweenRegex("", "", 0, 1); // yields " c=d e=f g=h " )