php 正则怎么用,如何用PHP 正则匹配

如何用PHP 正则匹配出含有HTML标签的字符串中的英文单词

Chapter 2
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.
章节2
星期六晚上 7 点。杰基站在窗前。一辆小车徐徐驶到前门停下来。一个白头发、高个子的男人下了车他是艾伯特,莫利姐姐的丈夫。
'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.
“是艾伯特姨父,”杰基说。“他总是迟到。”她走出房间打开前门。艾伯特走进来,立刻便走向莫利。
'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.
“哦,亲爱的,抱歉,我来得太迟了,”艾伯特说。“今天是你 50 岁生日!多漂亮的裙子!”莫利没有笑。“谢谢你,艾伯特。我们都老了。”今晚她穿了一条长长的黑裙子,两条黑狗蹲在她脚边。“现在大家都到了,咱们吃饭吧。”她说
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 span p 这样的标签中的英语除外,谢谢指教

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值