input is a string (var str) something like this:
"<<hello there//abcd//1234>>"
I want to know how to best extract the information to have this:
var a = "hello there";
var b = "abcd";
var c = 1234;
case a: select everything after << until first //
case b: select everything after first // until second //
case c: select everything after second // until >>
Anybody knows a simple solution?
THX
Or instead of substring, you can use
value = value.slice(2, -2);(thanks toAndy E’s head for the alternative).