0
다음 코드에 대한 정규식 작성 방법을 알고 싶습니다.이 경우 정규식을 작성하는 방법은 무엇입니까?
<a href="https://stackoverflow.com/search?q=user:111111+[apple]" class="post-tag" title="show all posts by this user in 'apple'">Apple</a><span class="item-multiplier">× 171</span><br>
위의 소스 코드에서 Apple을 가져와야합니다.
http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454 – kennytm
KennyTM , 당신이 정규식을 사용하여 HTML을 파싱 할 수 없다는 것은 사실이지만,이 질문은 HTML을 파싱하는 것이 아니라 오히려 태그를 파싱하는 것입니다. 확실히 가능합니다. –