如何用PHP 正则匹配出含有HTML标签的字符串中的英文单词 5
<divclass="set_en"><div><spanstyle="font-weight:bold;">Chapter2</span></div>Itwasseve...
<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;">章节2</span></div>星期六晚上 7 点。杰基站在窗前。一辆小车徐徐驶到前门停下来。一个白头发、高个子的男人下了车他是艾伯特,莫利姐姐的丈夫。</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">“是艾伯特姨父,”杰基说。“他总是迟到。”她走出房间打开前门。艾伯特走进来,立刻便走向莫利。</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">“哦,亲爱的,抱歉,我来得太迟了,”艾伯特说。“今天是你 50 岁生日!多漂亮的裙子!”莫利没有笑。“谢谢你,艾伯特。我们都老了。”今晚她穿了一条长长的黑裙子,两条黑狗蹲在她脚边。“现在大家都到了,咱们吃饭吧。”她说</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>
如何把上面字符串中的,正文中的,英文单词都匹配出来,
也就是不要标签中的英文,把类似div span p 这样的标签中的英语除外,谢谢指教 展开
如何把上面字符串中的,正文中的,英文单词都匹配出来,
也就是不要标签中的英文,把类似div span p 这样的标签中的英语除外,谢谢指教 展开
1个回答
2019-04-20 · 知道合伙人软件行家
关注
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询