html - 用于在大量链接列表中填充标签的“标题”属性的复杂(?)正则表达式
问题描述
解决方案
当然
<li>(.*) \(<a href
到
<li>$1 (<a title="$1" href
结果
<ol>
<li>One plus one equals two (<a title="One plus one equals two" href="https://me.com" target="_blank">Me</a>)</li>
<li>Your "reality", sir, is lies and balderdash, and I'm delighted to say that I have no grasp of it whatsoever (<a title="Your "reality", sir, is lies and balderdash, and I'm delighted to say that I have no grasp of it whatsoever" href="https://bvm.com" target="_blank">Baron von Munchausen</a>)</li>
</ol>
你将不得不审查它的双引号
推荐阅读
- python - 无法安装/导入 seaborn
- symfony - Symfony 和 1&1 ionos 使用 swiftmailer 发送电子邮件不起作用
- python - 如何计算,一列中的值在另一列中具有共同值的频率
- javascript - 为什么我的 ajax 帖子不想工作?我尝试序列化表单数据,并尝试将数据作为单独的变量发送。都不工作
- c++ - C++ 计算大位数、两位数或更多的阶乘位数
- excel - 实施我的公式以自动化报告
- python - PyTorch - TypeError:forward() 接受 1 个位置参数,但给出了 2 个
- apache-nifi - 无法解析 marklogic-service-api:1.8.0.3
- python - 将多个单位转换为 TB 并使用 Python 执行计算
- c# - dotnet 测试运行设置抛出 MSBUILD:错误 MSB1001:未知开关