图像缩略图

Regexpbuilder

版本2.0(251 KB) 迈克尔·瑞安(Michael Ryan)
Regexpbuilderis GUI that aims to simplify the creation of regexps in Matlab.

1.7 k下载

Updated2020年6月5日

查看许可证

编者注:This file was selected as MATLAB Central选择一周

RegexpBuilder()是GUI,旨在简化MATLAB中的Regexps的创建。它准确地显示了您输入时给定的RegexP,文本和输入选项的各种输出。允许MATLAB支持的所有REGEXP构造,金宝app以寻求Regexps的帮助,请参见DOC REGEXP。注意:Regexpbuilder已从地面重建,以与R2020A和更高版本合作!

Usage:
Enter your regexp in the textbox with "Regexp goes here...".
Optional inputs to the regexp command are enabled using the toggle buttons; an unset button gives the default value for the option.
将文本添加到“文本到解析的文本”框中。(发现的匹配项的预览将出现在相邻的框中。)
Press the evaluate button to see a preview of any matches below, as well as the values of the various possible outputs, on the left. (Bigger output windows can be obtained by clicking the corresponding button).

Imports and Exports There are 3 ways to import text into regexpBuilder:
Using the optional inputtxt parameter will prepopulate the input text box on startup.
Using the Import from URL button on the Import tab will pop up a window prompting a URL to import from. regexpBuilder uses webread to open URLs.
使用从文件导入将打开文件选择器对话框,选择要在此处导入的文件。RegexpBuilder使用FileRead打开文件。

“导出”选项卡提供了一种导出最终REGEXP命令的方法,以及导出的多种选项,通常对应于Regexp的输出选项。请注意,仅将非默认选项写入命令行。

Live Preview
如果Regexp可以匹配文本,则每个匹配都在正确的文本框中下划线。如果Regexp包含令牌(命名或未命名),则在文本中突出显示令牌的每场匹配,其颜色与令牌相对应。因此,对于经常匹配的许多令牌的式言论,您的文本看起来可能相当彩虹。Regexpbuilder使用Jet Colorsheme,因此您可以通过阴影式结肠胶片来更改Colorscheme。

到目前为止,我只能在一台计算机/MATLAB版本上进行测试,因此请让我知道评论中的任何错误!

引用为

迈克尔·瑞安(Michael Ryan)(2022)。Regexpbuilder(//www.tatmou.com/matlabcentral/fileexchange/41899-regexpbuilder),matlab中央文件交换。检索

MATLABRelease Compatibility
使用R2020a创建
Compatible with R2020a and later releases
平台兼容性
Windows macOS Linux
致谢

启发:Regexphelper

启发:交互式正则表达工具

社区寻宝

在Matlab Central中找到宝藏,发现社区如何为您提供帮助!

Start Hunting!