Rather than split the numeric sequence into individual digits and write complex code, a regex can test for validity.
regex不会把数字序列分隔为单个数字并编写复杂的代码,而是会测试其有效性。
The test rule section of the RegEx editor, which is shown in Figure 6, is used to test your rule on a set of sample text snippets.
使用RegEx编辑器的TestRule部分(见图6)在一组示例文本片段上测试规则。
Set up a duplicate profile to test your regex statements.
成立了一个重复的配置文件来测试您的正则声明。
This is just a bit faster than the regex-based test with small target strings, but, more importantly, the string's length no longer affects the time needed to perform the test.
目标字符串很小时,这种方法只比正则表达式快一点,但更重要的是,字符串的长度不再影响执行测试所需要的时间。
This is just a bit faster than the regex-based test with small target strings, but, more importantly, the string's length no longer affects the time needed to perform the test.
目标字符串很小时,这种方法只比正则表达式快一点,但更重要的是,字符串的长度不再影响执行测试所需要的时间。
应用推荐