1 Star 0 Fork 1

tindkk / regex_tool

forked from wzv5 / regex_tool 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Regex Tool

一个跨平台的正则表达式调试工具。

正则引擎来自 rust 官方库,界面使用 Qt,通过 cxx bridge 把 rust 库静态链接进主程序。

特性

  • 实时解析正则语法树
  • 支持 匹配、替换、分割 3 种模式
  • 支持高亮语法树中选中的部分
  • 支持高亮匹配项
  • 跨平台,已测试 Windows 和 Arch Linux

下载

仅限 Windows x64 系统。

https://github.com/wzv5/regex_tool/releases/latest

或者使用 Scoop

scoop bucket add wzv5 https://github.com/wzv5/ScoopBucket
scoop install wzv5/regex-tool

其他系统请自行编译。

截图

screenshot_1

screenshot_2

编译

安装 rust,并安装依赖:

cargo install cxxbridge-cmd

之后直接使用 cmake 编译即可。

Windows 平台或许需要设置 CMAKE_PREFIX_PATH,添加 Qt 库的相关路径,如 -DCMAKE_PREFIX_PATH=D:/Qt/6.0.0/msvc2019_64

已知问题

  • rust 正则引擎不支持前向、后向匹配
MIT License Copyright (c) 2020 wzv5 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

一个跨平台的正则表达式调试工具 展开 收起
Rust
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Rust
1
https://gitee.com/tindkk/regex_tool.git
git@gitee.com:tindkk/regex_tool.git
tindkk
regex_tool
regex_tool
master

搜索帮助