我试图使用Mercury Parser得到网页的字数。正则表达式匹配冒号和双引号之前的数字
<div><p>Content of the webpage goes here</p> </div>"","next_page_url":null,"excerpt":"Get started learning all about SEO from the industry's most trusted source, Search Engine Land. Review basics of search engine optimization, ranking factors & more.","word_count":522,"direction":"ltr","total_pages":1,"rendered_pages":1
在上面的内容,我需要匹配由"word_count":
之前数让我知道我可以使用正则表达式是什么表情。
我在试,(?<=word_count" :).*?(?=[100-10000])
。只是不能正确。
你试过了什么?你有什么问题?请告诉我们你的代码。如果您没有代码,那么堆栈溢出可能不是您的问题的正确位置。 –