恰当的实现应该进一步检查替换字符串。
A proper implementation would take a closer look at the replacement string.
在搜索和替换字符串中都可以使用缓冲区引用。
You can use the buffer reference in both the search and in the substitution string.
当你要搜索并替换字符串内容时。
When you want to search and replace the contents of a string.
还可以从替换字符串中引用子表达式。
You can also refer to a subexpression from within a replacement string.
替换字符串可能包含对在之前的匹配中捕获的子序列的引用。
The replacement string may contain references to subsequences captured during the previous match.
正则表示式是一种强大的匹配和替换字符串的方式。
Regular Expressions are a powerful way to match and replace strings.
函数的作用是:替换字符串中一部分为另一字符串。
The substr_replace() function replaces a part of a string with another string.
累加替换功能,能在替换中对替换字符串的前缀和后缀实现累加。
Cumulative replace function, can replace the replacement string for prefix and suffix to achieve cumulative.
用变量替换中间的字符串。
为阐述下字符串替换的概念,我们来展示几个例子。
To illustrate the concept of string substitution, some example rules are shown below.
查找字符串localhost,并使用恰当的主机名进行替换。
Look for the string localhost, and replace it with an appropriate hostname.
将字符串内的空格序列替换为单个空格。
Replace sequences of white-space within the string with a single space.
首先完成包含步骤,这可以利用简单的字符串替换来完成。
Take the include step first, which you can accomplish with simple string substitution.
它还演示了如何进行搜索和替换以及字符串拆分。
It also demonstrates how to do search and replace and string splitting.
列出论述如何针对字符串使用搜索和替换功能的主题。
Lists topics that discuss how to use search and replace for strings.
Replacement:将替换所找到字符串的字符串。
字符串在该文书已被替换。
如何在一个与它的值的字符串替换的表达?
尽管替换可能是一件不同的事情,字符串不需要移动。
Replacement might be a different matter though, as the string does not need to move.
什么是正则表达式中复制字符串替换?
你想把字符串的一部分替换为其他的值。
You need to replace a portion of a string with another value.
从文件读取的字符串替换。
从文件读取的字符串替换。
应用推荐