选择需要用变量替换的字符串部分 —在本例中为数字5。
Select the portion of the string you want to replace with a variable — in this example, the numeral 5.
单值上下文变量计算为在参数上下文中替换的字符串,例如,%wf:process.starter%计算为sarah。
Single value context variables evaluate to a string that is replaced in the parameter context, for example %wf:process.starter% evaluates to sarah.
如果使用圆括号将模式元素括起来,您可以在替换字符串中使用匹配的内容。
If you wrap pattern elements in parentheses, you can use the matched contents in the replacement string.
为了帮助您进行模板编辑,工具会指示可以使用转换工件替换的模板之内的字符串。
To assist you with template editing, the tool indicates detected strings within the template that can be replaced with transformation artifacts.
那个函数则接收匹配到的数组作为参数,然后返回一个修改后的字符串作为替换。
This function receives the match array as a parameter and returns a modified string that is used as a replacement.
这是包含被替换值替换了适当正则表达式匹配项的字符串。
This is the string that has the appropriate regular expressions matches replaced with the replacement value.
我仍然将存在隐患的调用替换成亲自编写的字符串操作,因为它们仅和少数特定的正则表达式一起使用。
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.
恰当的实现应该进一步检查替换字符串。
A proper implementation would take a closer look at the replacement string.
随后又使用连接后的字符串替换这些字符串。
替换字符串可能包含对在之前的匹配中捕获的子序列的引用。
The replacement string may contain references to subsequences captured during the previous match.
它很聪明,不会替换在引号括起的字符串中找到的逗号。
Wisely, it doesn't replace a comma found within a quoted string.
为阐述下字符串替换的概念,我们来展示几个例子。
To illustrate the concept of string substitution, some example rules are shown below.
这时会建立一个字典,其中包含了映射原始的长字符串与它们的替换值的信息。
A dictionary is built that contains information mapping the original bit strings and their replacements.
正则表达式基本上就是为进行文本处理而构建的一种小型的子语言,用来进行字符串的匹配和替换。
Regular expressions are basically a small sub-language built for text processing, used to match and replace strings of characters.
对于每种受支持的样式标签,我们将构造一个替换字符串,并创建一个新的自动完成建议。
For each supported style tag, we construct a replacement string and create a new completion proposal.
这里有一些例子,注意字符串替换符的使用。
Here are some examples which incorporate the above patterns. Note the use of the string substitution operators.
如果xargs将要执行的命令包含有替换字符串,那么将使用参数替换它。
Wherever the replacement string occurs in the command you ask xargs to execute, it will be replaced by an argument.
将字符串内的空格序列替换为单个空格。
Replace sequences of white-space within the string with a single space.
在这个例子中,每当用户单击滚动条时,便用一个更新的字符串替换DIV标记的innerhtml值。
In this case, you replace the innerHTML value of the DIV tag with an updated string each time the user clicks on the scrollbar.
把现有的字符串替换为报表的默认动作url,单击OK关闭Text对话框。
Replace the existing string with the default action URL for the report, and close the Text dialog by clicking OK.
首先完成包含步骤,这可以利用简单的字符串替换来完成。
Take the include step first, which you can accomplish with simple string substitution.
可以看出,我们使用了与前面相同的诀窍:从使用格式字符串的消息中检索DataGraph,然后替换消息中的DataGraph。
As you can see, we use the same trick that we used before: retrieved a DataGraph instance from the message using a format string, then replaced the DataGraph on the message.
调用是用于在preg_replace_callback函数里动态地替换字符串的。
A callback is used for dynamic substitution Strings in the preg_replace_callback function.
您看到了引用主目录的不同方法,了解了鲜为人知的cd转移特性,该特性允许替换当前路径中的字符串并切换到新路径。
You saw different ways of referring to home directories, and you learned about the little-known CD shuffle, which allows you to substitute a string in your current path and switch to a new path.
Replacement:将替换所找到字符串的字符串。
这里我们需要将选中的文本包装到选定的样式标签中,并使用这个新的字符串替换文档里选中的文本。
Here, we need to wrap the selected text into the selected style tags and replace the selected text in the document with this new string.
它与清单7的相似之处在于它替换了固定字符串,但诀窍在于替代该固定字符串的字符串本身在下次替换时又成了固定字符串。
It is similar to Listing 7 in that it replaces a fixed string, but the trick is that the replacement itself for the fixed string becomes the fixed string the next time.
在DB 2 9.7中,行压缩(也称为深度压缩)通过把跨行重复出现的值模式替换为更短的符号字符串来压缩数据行。
In DB2 9.7, row compression, also referred to as deep compression, compresses data rows by replacing patterns of values that repeat across rows with shorter symbol strings.
此函数在字符串中搜索给定模式并用新的值替换它们。
This function searches for given patterns in a string and replaces them with a new value.
在调用解密命令之前,清单13中的字符串操作函数将替换丢失的格式。
The string manipulation functions in Listing 13 replace the lost formatting before the decryption command is called.
应用推荐