Regex Testor
Version 1.02
Copyright (c) 2013 Fiery Red - flameleo
我们在使用正则表达式( regex: regular expression )的过程中,经常发现正则表达式的语法很令人头疼,即使对经常使用它的人来说也是如此。对于刚接触正则表达式的人来说多练习,多使用,才能熟练掌握正则表达式。
由于难于读写,容易出错,且需要反复练习。所以找一种工具对正则表达式对我们脑中构思的regex进行测试是很有必要的。
1.特点
a.适合初学者,在不断测试用学习如何使用正则表达式。
b.可以分组保存,测试中用到的正则表达式。
c.本工具使用最常见的regex。以下是简单示例:
a|b Matches a or b
gr(a|e)y Matches a or e
. Matches any single character
[abc] Matches a single character a, b or c
[^abc] Matches any single character except a, b or c
[a-z] Matches a single charactor in the range a to z
[a-zA-Z] Matches a single charactor in the range a to z or A to Z
^ Matches the start of the filename
$ Matches the end of the filename
* Matches the preceding element zero or more times
? Matches the preceding element zero or one times
+ Matches the preceding element one or more times
{x} Matches the preceding element x times
{x,} Matches the preceding element x or more times
{x,y} Matches the preceding element between x and y times
值得一提的是()代表子匹配,有些环境中gr(a|e)y Matches gray or grey
还支持许多常见的转义字符 \b,\B,\c,\d,\D,\f,\n,\r,\s,\S,\t,\v,\w,\W,\x,\u 具体详见附件 Regular Expression Syntax1.html
2.功能介绍
a.界面上显示提供regex输入框和原文本框,点击[模式匹配]按钮后,会在右侧输出结果,包括匹配字符串列表和文本。
b.对于测试中一些有用的regex,点击[insert]按钮添加到模式列表,以备日后使用。你可以位该regex添加描述分组,该信息会在程序结束后保存在CustomPatternInfo.ini文件中。
c.可以参考Readme_1.jpq和Readme_2.jpq图片介绍。
3.有待改进
a.界面布局和控件友好型和交互性。
b.界面功能提供regex语法支持。(暂时可以通过导入附件RegexSystax.ini到CustomPatternInfo.ini中)
4.意见反馈
a.请将您的宝贵意见反馈到 FieryRed_2012@163.com
附件:
Readme.txt
Readme_1.jpg
Readme_2.jpg
Regular Expression Syntax.html
RegexSystax.ini
有时候运行游戏,或者是工具程序的时候
会提示
"Component 'mscomctl.ocx' or one of its dependencies not correctly registered:a file is missing or invalid"
下载并执行mscomctl.ocx.reg.bat
(没啥技术含量,只为了方便,顺便借点分下载用)
请先确认自己系统中是否有mscomctl.ocx
如果有
先反注册
regsvr32 mscomctl.ocx /u
下载后lib文件夹内有 mscomctl.ocx
如果想使用自己准备的mscomctl.ocx,请替换源文件
然后执行安装文件
(自动化版本请搜索 mscomctl.ocx 自动安装(有待更新))
1 JSP简介
JSP(JavaServer Pages)是一种基于Java的脚本技术。是由Sun Microsystems公司倡导、许多公司参与一起建立的一种动态网页技术标准。
。。。
。。。
JSP and WEB technology
1 JSP Introduction
JSP (JavaServer Pages) is a Java-based scripting technology. Is advocated by Sun Microsystems Inc., together with a number of companies involved in the establishment of a dynamic web page technology standards. JSP technology is somewhat similar to ASP technology, It is a traditional HTML page file (*. htm, *. html) to insert Java program segment (Scriptlet) and JSP tag (tag), To form the JSP file(*jsp).