QRegularExpression 示例

QRegularExpression 示例通过提供一个可在自定义文本字符串上创建和测试新正则表达式的环境,展示了 Qt 中的正则表达式如何应用于文本。

该示例使用了 Qt 5.0 中引入的QRegularExpression 类。QRegularExpression 实现了与 Perl 兼容的正则表达式,支持大量高级匹配功能,如大小写不敏感匹配、多行匹配、Unicode 属性选择器和部分/增量匹配。

示例项目 @ code.qt.io

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.