{
   "author" : "56228375",
   "name" : "some missing string operations: split on regex; replace regex; between regex",
   "description" : "some useful string operations which appear to be absent in sclang",
   "ancestor_list" : [],
   "labels" : [
      "utilities",
      "string manipulation",
      "regex"
   ],
   "code" : "// note: first install quark https://github.com/shimpe/scstringext\r\n// using\r\n\r\nQuarks.install(\"https://github.com/shimpe/scstringext\");\r\n\r\n// then you should be be able to run the following examples\r\n\r\n(\r\n\"abcdefabcdef\".splitRegex(\"bcd\"); // yields [ \"a\", \"efa\", \"ef\" ]\r\n\"12-05-1984\".replaceRegex(\"\\\\d+\", \"x\"); // yields \"x-x-x\"\r\n\"12-05-1984\".splitRegex(\"-\"); // yields [ \"12\", \"05\", \"1984\" ]\r\n\"appple\".replaceRegex(\"p+\", \"pp\"); // yields \"apple\"\r\n\"<control> a=b <group> c=d <region> e=f <region> g=h <group> <region> i=j\".betweenRegex(\"<group>\", \"<group>\", 0, 1); // yields \" c=d <region> e=f <region> g=h \"\r\n)",
   "is_private" : null,
   "id" : "1-5bH"
}
