我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

需要正则表达式匹配>排除有效的html标签

in my last question Want a regex which matches > char not containing in any tag i got the answer but it is not directly matching to >

one of the valid answer from last question is '/(?=(?:^|>)[^<>]*(>))/' which matches > excluding from valid html tags test string is 'abc><span>some >text< again some<some tag></some tag>vfs>>vf</span>'

Please help me to get the regex which directly matches >, not any matches[] array

Try this: >|(<.*?>|.)(*SKIP)(*F)

近期文章

  • include('form.php')抛出错误404
  • 图像上传为多部分到服务器文件夹在android中不起作用
  • 在wordpress上创建cookie后调用
  • 光滑的多个轮播和控制问题
  • 解析MySQLi查询语句以获取PDO迁移的参数
  • getenv(“HTTP_XXX”)什么都不返回
  • 使用PHP RecursiveDirectoryIterator构建一个简单的目录浏览器
  • 从本地主机发送电子邮件,而不使用GMAIL邮件服务器在PHP中运行XAMPP
  • SVG到画布的路径
  • PHP PDO多重准备声明
  • MySQL - 如何知道行的自动增量id
  • Imagecreatefromjpeg在读取一些jpeg文件时遇到问题
  • 在php中创建USSD多级菜单
  • 使用.htaccess更改URL中的语言参数代码
  • 选择第二个值
  • WordPress查询字符串来改变SEO友好的URL
  • 在php变量中用条件运算符替换if语句
  • 在Yii中,为什么教程引用了类方法::
  • 用另一个数组中的文本替换关联数组中的文本
  • 数组显示在表中

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华