1
1
从你的问题猜测,你应该使用这样的正则表达式:
这建立在您使用a-href作为替换锚定的想法之上。
我们不能真正使用lookbehind在URL之前断言a-href,因为在lookbehinds中可以有任意的空白,并且pcre不支持可变长度的模式。
如果您必须在
|
Mehdi Ammar · 小写字符串中方括号内的所有单词 2 年前 |
jerome · PHP删除括号内及其后的字符串 6 年前 |
Costin Nicolau · regex替换为数组 6 年前 |
WholeHearted · 记事本++正则表达式跨新行字符查找和替换 6 年前 |
IanCun · 嵌套引号内的子模式Regex匹配 6 年前 |
bohr · preg\U replace删除行的其余部分 6 年前 |
ainodoramaaa 2 · 使用strtr删除字符串 6 年前 |
502_Geek · 如果斜杠后面不包含空格,如何在斜杠后面添加空格? 6 年前 |