如何用PHP 正則匹配出含有HTML標(biāo)簽的字符串中的英文單詞<div class="set_en"><div><span style="font-weight: bold;">Chapter 2</span></div>It was seven o'clock on Saturday evening.Jackie stood at the window. A car drove slowly up to the front door and stopped. A tall man with white hair got out. It was Albert, the husband of Molly's sister.</div><div class="set_cn"><div><span style="font-weight: bold;">章節(jié)2</span></div>星期六晚上 7 點(diǎn)。杰基站在窗前。一輛小車(chē)徐徐駛到前門(mén)停下來(lái)。一個(gè)白頭發(fā)、高個(gè)子的男人下了車(chē)他是艾伯特,莫利姐姐的丈夫。</div><div class="set_en">'Here's Uncle Albert,' Jackie said. 'Always late.'She went out of the room and opened the front door. Albert came in and went at once to Molly.</div><div class="set_cn">“是艾伯特姨父,”杰基說(shuō)?!八偸沁t到?!彼叱龇块g打開(kāi)前門(mén)。艾伯特走進(jìn)來(lái),立刻便走向莫利。</div><div class="set_en">'Oh, dear. I'm very late. I am sorry,' Albert said.'Fifty years old today! What a wonderful dress!'Molly did not smile. 'Thank you, Albert. We're all getting older.' Tonight she wore a long black dress, and the two black dogs sat at her feet.'Everyone is here now. Let's go in to dinner,' she said.</div><div class="set_cn">“哦,親愛(ài)的,抱歉,我來(lái)得太遲了,”艾伯特說(shuō)?!敖裉焓悄?50 歲生日!多漂亮的裙子!”莫利沒(méi)有笑?!爸x謝你,艾伯特。我們都老了?!苯裢硭┝艘粭l長(zhǎng)長(zhǎng)的黑裙子,兩條黑狗蹲在她腳邊?!艾F(xiàn)在大家都到了,咱們吃飯吧?!彼f(shuō)</div><div class="set_en">Everyone stood up and went to the table.'The table looks nice, Jackie. What wonderful flowers!' Diane said. She was a beautiful girl, with long black hair and dark blue eyes. She wore a long red dress.</div>如何把上面字符串中的,正文中的,英文單詞都匹配出來(lái),也就是不要標(biāo)簽中的英文,把類似div span p 這樣的標(biāo)簽中的英語(yǔ)除外,謝謝指教
- 2 回答
- 0 關(guān)注
- 597 瀏覽
添加回答
舉報(bào)
0/150
提交
取消