small jquery parser
Posted
by Johua
on Stack Overflow
See other posts from Stack Overflow
or by Johua
Published on 2010-06-15T09:27:24Z
Indexed on
2010/06/15
9:32 UTC
Read the original article
Hit count: 263
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
© Stack Overflow or respective owner