0

I have a string that look like this

BLA BLA BLA "url_encoded_fmt_stream_map": "ABCDEFGHIJKLMN" BLA BLA BLA BLA

And i want to get the string ABCDEFGHIJKLMN,i tried to do it with REGX:

html = html.match("\"url_encoded_fmt_stream_map\": \"(.*)\"");

But it always give me an empty string.Any idea what is the problem with this method?

4

1 回答 1

2

不带引号试试:

html = html.match(/"url_encoded_fmt_stream_map\": \"(.*)"/);

斜杠告诉 javascript 它是一个正则表达式。

于 2013-07-03T08:30:18.567 回答