我的数据一次只能出现一个字符。例如:
out = {
比一段时间后:
out = {"created_at":"Fri Apr 19 19:43:25 +0000 2013","id":325333836244"
所以我想要做的就是分离即将到来的数据,我想捕捉它们之间的所有内容
{"created_at"
和"lang":"en"}
例如,如果我不捕获任何内容,那么变量out
最终会看起来像这样:
{"created_at" .....some text..... "lang":"en"}{"created_at" ....some text... "lang":"en"}{"created_at" ..........some text.......... "lang":"en"}{"created_at" ..........some text.......... "lang":"en"}
但我不想做像
这样的事情if out contain '"lang":"en"}':
captured = out.substring('{"created_at"' , "lang":"en"})
out = ''