Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Golang

`
(?s:("name" : "(.*?)".*?作者[:]*</span>[:]*.*?>(.*?)<.*?出版社.*?> (.*?)<.*?>出版年.*?([\d]{4}-[\d]).*?定价:</span> (.*?)<.*?ISBN:</span> (.*?)<.*?v:average"> ([\d].[\d]).*?v:votes">([\d]+?)<.*?"rating_per">(.*?)<.*?"rating_per">(.*?)<.*?"rating_per">(.*?)<.*?"rating_per">(.*?)<.*?"rating_per">(.*?)<))
`
gm

Description

提取书籍信息 get book information link like:https://book.douban.com/subject/35049755/

Submitted by anonymous - 3 years ago