它可能由文本字符和正则表达式替换组成。
It can consist of literal characters and regular expression substitutions.
如果找到了匹配的规则,将在具有sendto属性值的被请求路径上执行正则表达式替换。
If a match is found, a regular expression replace is performed on the requested path with the value of the SendTo property.
在元素中指定模式时,请注意,要使用正则表达式来执行匹配和字符串替换。
When specifying patterns in the element, realize that regular expressions are used to perform the matching and string replacement.
这是包含被替换值替换了适当正则表达式匹配项的字符串。
This is the string that has the appropriate regular expressions matches replaced with the replacement value.
正则表达式基本上就是为进行文本处理而构建的一种小型的子语言,用来进行字符串的匹配和替换。
Regular expressions are basically a small sub-language built for text processing, used to match and replace strings of characters.
为此,上例中使用正则表达式进行替换。
To achieve this in the above example, you use a regular expression to perform the replacement.
replace函数采用了三个参数:第一个参数是要修改的文本,第二个参数是与将要替换的部分匹配的正则表达式,第三个参数是替换字符串。
The replace function USES three arguments: the first is the text to modify, the second is the regular expression that matches the part to be replaced, and the third is the replacement string.
在这种情况下,可以通过使用正则表达式或者String . Replace方法将每个单引号实例替换为两个单引号,使单引号无害。
In such cases, you can render the single quote harmless by using a regular expression or the String.Replace method to replace each instance of the single quote with two single quotes. For example.
Sed使用正则表达式语法在模式空间中搜索并有选择地替换文本,以及决定对哪些文本行应用编辑命令。
Sed USES regular expression syntax to search for and replace text selectively in the pattern space as well as to control which lines of text should be operated on by sets of editing commands.
幸运的是,您可以使用sed命令(StreamEDitor),它提供了功能强大的正则表达式匹配和替换。
Luckily, you have the sed command (Stream EDitor), which provides powerful regular expression matching and replacement.
如果应用拥有动态对象或应用的多个版本之间有细微的差别,为了获得对象的正确版本,可以使用正则表达式来替换识别属性。
If the application has a dynamic object or if several versions of the application are slightly different, correct versions of an object, replace the recognition property with a regular expression.
我仍然将存在隐患的调用替换成亲自编写的字符串操作,因为它们仅和少数特定的正则表达式一起使用。
I may yet replace the calls in question with hand-coded string operations, since they're only used with a few very specific regular expressions.
清单1给出了一个使用Perl编写的正则表达式,它可以将HTML字符串中的每个替换成。
Listing 1 a small regular expression in Perl that substitutes every occurrence of with in an HTML string.
替换过程使用replace函数和正则表达式完成。
That's accomplished through the use of the replace function along with a regular expression.
在进行匹配时,要用m//操作符来标识这些正则表达式(有时是可选的),而当匹配并替换时,则要用 s/// 操作符来 标识它们。
They are marked by the m// operator (sometimes optional) when matching, and by the s/// operator when matching and replacing.
如果你知道正则表达式你可能能够完成大部分这样的替换工作。
If you know regular expressions well you might even be able to get most of the work done with a few such replacements.
当然无须任何正则表达式的知识,你仍然可以搜索及替换普通文本。
Of course, you can just search and replace normal text without needing to learn regular expressions.
应用程序具有很好包括能够搜索和替换由正则表达式的搜索和替换功能。
The application has great search-and-replace functionality, including the ability to search and replace by regular expressions.
该错误通常发生在查找或替换时在搜索字符串中使用了正则表达式或通配符时。
This error generally occurs during search or replace when regular expressions or wildcards are used in a search string.
通过使用上面显示的正则表达式,下面的示例可将两个连续相同的单词的匹配项替换为同一单词的单个匹配项。
Using the regular expression shown above, the following example replaces an occurrence of two consecutive identical words with a single occurrence of the same word.
可以从正则表达式和替换字符串中引用子表达式。
You can refer to a subexpression from within a regular expression, and from within a replacement string.
最终序列化的XML,然后使用正则表达式来查找和替换元素内的一切。
Ended up serializing the XML, then using regex to find and replace everything inside the element.
此外还有一个更强大的“搜索及替换”工具,可以匹配正则表达式并选择性地替换html代码。
There is also a more powerful 'search and replace' tool which enables one to enter regular expressions to match and optionally replace HTML.
什么是正则表达式中复制字符串替换?
你还可以预览匹配和替换结果以方便验证你的正则表达式是否准确。
You can simply preview the matches and the replacements if you wish to just search using regular expressions or to ensure that you have your expressions correct.
在指定输入子字符串内,使用指定替换字符串替换与某个正则表达式模式匹配的字符串(其数目为指定的最大数目)。
Within a specified input string, replaces a specified maximum number of strings that match a regular expression pattern with a specified replacement string.
我想和我的“匹配”的数据替换正则表达式(段)。
我想和我的“匹配”的数据替换正则表达式(段)。
应用推荐