# 正则解释 **Repository Path**: zhishi/regular-expression-explanation ## Basic Information - **Project Name**: 正则解释 - **Description**: 正则表达式解释与举例 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-05-23 - **Last Updated**: 2025-05-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [此帖](https://www.v2ex.com/t/1129702?p=1#reply13) 之后,在 [此答](https://www.zhihu.com/question/1902717243177018751/answer/1904346248837853544) 更新进展。 ## 目标 比如代码编辑器里的一段正则 `\$?[_a-zA-Z\u4e00-\u9fa5][_a-zA-Z0-9\u4e00-\u9fa5]*`,插件给出符合的例子: ``` a0 $a0 中二 。。。 ``` 也可给出解释: ``` $ 可选 ("_", 大小写英文, 中文)之一 ("_", 大小写英文, 数字, 中文)若干 ``` ## 进展 通过悬浮窗口显示解释和一个例子,如: ![截图](https://pic1.zhimg.com/v2-06c65b577fe6e9d83a62eac82648b8b4_r.jpg?source=2c26e567) ## 待做 - 改进输出可读性 - 更多有代表性的例子 欢迎参与,请参考 [此开发文档](https://gitee.com/Program-in-Chinese/vscode_Chinese_Input_Assistant/blob/master/%E6%96%87%E6%A1%A3/%E8%B4%A1%E7%8C%AE%E6%8C%87%E5%8D%97.md)。