Replace multiple whitespace characters with single whitespace characters.
用单个空格字符替换多个空格字符。
You've seen metacharacters, such as \s, that match any whitespace characters.
您已经看到过匹配所有空格字符的元字符,例如 \s。
To specify how whitespace characters should be handled, we would use the whitespace constraint.
为了指定空白符的处理方式,我们可以使用空白符约束。
If you do use any non-whitespace characters for this purpose, you don't need the XML: space attribute.
如果使用任何非空白字符,就不需要xml:space属性了。
The second is the preserve whitespace option, which preserves the boundary whitespace characters found in the XML document.
第二个是preservewhitespace选项,将保留XML文档中的边界空格符。
By not including whitespace characters and punctuation in the legal list, you can prevent potential avenues of manipulation.
通过在合法的列表中都不包含空格和标点符号,就可以防止出现被控制的问题。
The group's name can be any series of non-whitespace characters, except "end" or "end", which are reserved for specifying the end of a group.
这个组的名称可以是一系列非空白的字符,除了“end”或者“end”,这是保留用于指定一个组的结束的。
Forgetting to include this option would cause the form to be altered (that is, boundary whitespace characters removed) before being stored in the database.
忘记包含该选项将导致表单在存储到数据库之前发生改变(即移除边界空格符)。
Although using a regex for this adds a bit of performance overhead, it lets you defer the list of whitespace characters to the browser for the sake of brevity and compatibility.
请注意,此方案在循环中使用正则表达式检测字符串尾部的字符是否空格,尽管使用正则表达式增加了一点性能负担,但它允许你根据浏览器定义空格字符列表,以保持简短和兼容性。
This expression also removes all null characters and excess whitespace.
此表达式也会删除所有空字符和过量的空白。
The CHARACTERS event is actually used to represent three types of text events: text that is the actual content (CHARACTERS), CDATA sections, and ignorable whitespace (space).
CHARACTERS事件实际上用于表示三类文本事件:实际内容的文本(CHARACTERS)、CDATA部分以及可忽略的空白(SPACE)。
When you add whitespace to your documents, a parser processes more characters, which in the end affects parsing performance.
当您将空格添加到文档中时,解析器就要处理更多的字符,从而最终影响解析过程的性能。
As shown in Figure 22, the NORMXML is applied to the input data in order to remove any XML whitespace (including carriage returns, line feeds, TAB characters, and Spaces).
如图22所示,对输入数据应用NORMXML以删除xml空白(包括回车、换行、制表符和空格)。
Strip out nonalpha characters that are not whitespace (which messes up apostrophes, but it's a good place to start)
删除不是空格的非首字母字符(空格将搞乱省略符号,但是它是很好的起点)
All whitespace in character content is retained (excluding characters removed during line feed normalization).
保留字符内容中的所有空白(不包括换行规范化过程中删除的字符)。
In this case the % substitutes other punctuation characters and whitespace.
在这里,%会替换其他的标点符号和空格。
That's because looping over characters to check whether they are whitespace can't match the efficiency of a regex's optimized search code.
因为循环检查字符是不是空格在效率上不如正则表达式所使用的优化过的搜索代码。
The largest palindrome is guaranteed to be at most 2,000 characters long before whitespace and punctuation are removed.
我们将保证最长的回文不会超过2,000个字符(在除去标点符号、空格之前)。
The largest palindrome is guaranteed to be at most 2,000 characters long before whitespace and punctuation are removed.
我们将保证最长的回文不会超过2,000个字符(在除去标点符号、空格之前)。
应用推荐