您可以将数据与正则表达式进行比较,如果它们匹配,则知道数据是有效的。
You can compare data to a regular expression; if they match, you know your data is valid.
它还支持对添加的文件进行过滤,方法是使用文件的正则表达式模式传递第二个参数,以匹配文件并添加到归档中。
It also supports filtering of the files to add by passing a second parameter with the regular-expression pattern of files to match and add to the archive.
正则表达式基本上就是为进行文本处理而构建的一种小型的子语言,用来进行字符串的匹配和替换。
Regular expressions are basically a small sub-language built for text processing, used to match and replace strings of characters.
比方说你不会试图去扩展正则表达式来设计HTML页面,也不会用CSS来进行文本匹配。
You don't want to extend regular expressions to style HTML, nor CSS to match text patterns.
对变量名长度的支持需要进一步了解如何使用正则表达式进行语法匹配
Support for variable name lengths requires more understanding of the use of regular expressions in syntax match
URL模式:与Perl兼容的正则表达式字符串,将与客户端发送的URL进行匹配。
URL pattern: a Perl-compatible regular expression string to be matched with the URL sent by the client.
但是如果使用webclipper组件,则可以通过指定与包含的HTML匹配的正则表达式,对 Web页面进行裁剪,选择性地显示某些部分。
The web clipper component lets you prune a Web page by specifying regular expressions that match the contained HTML and selectively show only certain portions.
这也意味着对于要进行简单测试的任何简短代码,LINQPad非常有用,例如:棘手的数字格式字符串或者匹配正则表达式。
This means LINQPad is useful for any code snippet needing simple testing, e.g., tricky numeric format strings or Regex matching.
清单5中第二行调用对rope进行修饰,优化正则表达式匹配。
The call on the second line in Listing 5 decorates the rope to optimize regular-expression matching.
Unicode数据可以使用正则表达式进行匹配。
在进行匹配时,要用m//操作符来标识这些正则表达式(有时是可选的),而当匹配并替换时,则要用 s/// 操作符来 标识它们。
They are marked by the m// operator (sometimes optional) when matching, and by the s/// operator when matching and replacing.
预防此类问题的关键是确保正则表达式的两个部分不能对字符串的同一部分进行匹配。
The key to preventing this kind of problem is to make sure that two parts of a regex cannot match the same part of a string.
这些正则表达式可以相互递归地引用,在以前的正则表达式不能进行模式匹配的字符串中进行模式匹配。
These regular expressions can refer to each other recursively, matching patterns in strings that ordinary regular expressions cannot.
正则表达式作为一个模板,将某个字符模式与所搜索的字符串进行匹配。
The regular expression serves as a template for matching a character pattern to the string being searched.
正则表达式作为一个模板,将某个字符模式与所搜索的字符串进行匹配。
The regular expression serves as a template for matching a character pattern to the string being searched.
应用推荐