java - How to grab the content of a specific tag
巴扎黑
巴扎黑 2017-05-17 10:00:17
0
2
518

For example, if I want to capture the content in the following tags, it is just "Catch me"

<p class="c-info-box">抓我</p>

Try the following regular expression

<p class=\"c-info-box\">(.*)</p>

is not feasible. Is there any more suitable expression?

巴扎黑
巴扎黑

reply all(2)
世界只因有你
<p class=\"c-info-box\">(.*?)</p>
大家讲道理

This can be done using css class selection + DOM operation. If you use regular expressions, you will take the long way around

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template