那个函数则接收匹配到的数组作为参数,然后返回一个修改后的字符串作为替换。
This function receives the match array as a parameter and returns a modified string that is used as a replacement.
此函数在字符串中搜索给定模式并用新的值替换它们。
This function searches for given patterns in a string and replaces them with a new value.
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.
调用 preg_replace()函数将用空字符串替换美元符号、所有空格和每个逗号,生成认为是整数的内容。
The call to the preg_replace() function replaces the dollar sign, any whitespace, and every comma with the empty string, yielding what's supposed to be an integer.
调用是用于在preg_replace_callback函数里动态地替换字符串的。
A callback is used for dynamic substitution Strings in the preg_replace_callback function.
在调用解密命令之前,清单13中的字符串操作函数将替换丢失的格式。
The string manipulation functions in Listing 13 replace the lost formatting before the decryption command is called.
首先,从最主要的角度来看,函数的目的是“查找与第一个模式中的值匹配的字符串,然后通过将第三个变量作为要操作的字符串,以第二个模式替换匹配结果”。
First, in broadest terms, the function's purpose is to "match what is in the first pattern, then replace it with the second pattern, using the third argument as the string to operate on."
当要编写规则处理多个相似的设备时,udev可以使用类似C语言的printf函数中的字符串替换操作符。
When writing rules which will potentially handle multiple similar devices, udev's printf-like string substitution operators are very useful.
当要编写规则处理多个相似的设备时,udev可以使用类似C语言的printf函数中的字符串替换操作符。
When writing rules which will potentially handle multiple similar devices, udev's printf-like string substitution operators are very useful.
应用推荐