Matching multiline Patterns

后端 未结 3 2046
臣服心动
臣服心动 2020-12-21 16:18

I want to use greasemonkey to scrape wiki data from Last.fm (this is not possible with their REST api). I can grab the page fine with GM_xmlhttpRequest(), and it is returnin

相关标签:
3条回答
  • 2020-12-21 16:51

    Try (.*?) instead of (.+)

    0 讨论(0)
  • 2020-12-21 17:00

    try [\s\S], because [^] doesn't work in IE8

    0 讨论(0)
  • 2020-12-21 17:07

    The dot doesn't match newlines in javascript -- a quirk of js's regex flavor.

    [^] should work instead (e.g. "Everything except absolutely nothing")

    0 讨论(0)
提交回复
热议问题