Chuyển đến nội dung chính

dsh-regex

Đã xác minh

@i6060/dsh-regex · v0.1.0 · MIT

正则工具:测试匹配(位置/分组)、安全替换、特殊字符转义

Cài đặt

dsh plugin add @i6060/dsh-regex

Xác nhận layer đã áp bằng dsh --profile default --dump-config — xem hướng dẫn cài plugin.

Mã nguồn

Phát hành lên npm mà không có repository công khai. Hãy kiểm tra nội dung package trước khi cài.

Thẻ

Readme

dsh-regex · 正则工具

测试正则匹配(位置/分组)、安全替换、特殊字符转义。纯 Node 实现。

提供的工具

工具 作用
regex_test 测试匹配
regex_replace 正则替换
regex_escape 特殊字符转义

安装

dsh plugin add @i6060/dsh-regex

安装后在 profile 的 package.jsondsh.profile.bundles 中加入 "dsh-regex"

用法示例

测试这个正则能匹配到什么
→ 调用 regex_test(pattern="\\d+", text="a1b22c333")