regex - QRegExp 用法:如何从 html 字符串中获取图像名称?
问题描述
html = ... <span>emoticon12</span><img src="qrc:\res\emoticon\emo12.gif" width="20" height="20"/><span>emoticon8</span><div>...</div><img src="qrc:\res\emoticon\emo8.gif" width="20" height="20"/>...<img src="qrc:\res\emoticon\emo9.gif" width="20" height="20"/>...
如何使用 html 中的 QRegExp 将所有图像名称作为 QStringList 获取?
结果 = emo12.gif、emo8.gif、emo9.gif
我不能做正则表达式。
解决方案
推荐阅读
- laravel - Laravel 守卫、大门和政策
- rascal - Rascal 可以在方法中返回操作系统吗?
- mysql - MySQL(MariaDB)按索引交换列位置,不使用 after
- angular - 尝试更新 ngrx 存储时发生错误
- powerbi - 嵌入 PowerBI 时是否可以将筛选器应用于仪表板或磁贴?
- php - php 文件中不允许 chmod 操作
- javascript - 在js中聚合数组内的对象
- html - 对象适合不工作,容器是否影响对象适合
- node.js - 未启用 Postman 与 api 通信
- javascript - 无法链接到 next.js 应用程序的 index.js(主页)