开发者

Getting link using specific text

开发者 https://www.devze.com 2022-12-30 04:19 出处:网络
From HTML body,I have to extract link which has text \"Customer\".For example <a href=\"google.com?x=1&xy=2\" _target=\"blank\" title=\"cus\">Custome开发者_开发知识库r </a>

From HTML body,I have to extract link which has text "Customer".For example

<a href="google.com?x=1&xy=2" _target="blank" title="cus">Custome开发者_开发知识库r </a>

I was thinking of using regex. What regex to use?


<a href=\"(.*?)\".*>.*Customer.*</a>
0

精彩评论

暂无评论...
验证码 换一张
取 消