正则表达式执行工具
作者首页
使用说明
请在这里输入待测/待处理文本 例子:查找所有单词中含有相同元音字母(a/e/i/o/u)的单词,替换时在该单词两侧用匹配到的元音字母包起来。 This tool is designed and implemented by Shosh, whose qq number is 124727276 and whose home page is http://www.wscxy.com. You can test your regular expression when you are trying to make it with this tool, and I believe it will help you much. You can also just deal with your string using some specific regular expressions and get the useful result back. OK, just enjoy it. This text is just for test with the default regular expression. You can change them to take more tests.
查询表达式:
[切换]替换式
水平滚动
//Function Body(专家模式,使用替换函数,如果不了解原理,请按“[切换]替换式”按钮使用普通字符串替换) var match = arguments[0]; //匹配得到的字符串 var pos = arguments[arguments.length - 2]; //在原字符串中的匹配位置 var obj = arguments[arguments.length - 1]; //原字符串对象 if (arguments.length < 125) //保护if里的代码不被检测而导致全局数据变化 isNaN(window.gValue) ? window.gValue = 0 : window.gValue++; //全局变量请使用window.xxxx return window.gValue + ":" + match;
忽略大小写
全局匹配
多行匹配
¤ 预览方法:
方法一:蓝色显示可见字符
方法二:灰色显示所有字符
同时使用方法一和方法二
高亮匹配
预览区域