第二个子表达式 (\s)只表示“查找与任何空格字符匹配的字符串,让我们回过来看什么与之匹配”。
The second subexpression, (\s), just means "match any whitespace character and let us refer back to what was matched.
表达式的其余部分用来检查值(去掉头尾的空格之后)是否是空字符串。
The rest of the expression is used to see if the value (without leading or trailing blanks) is an empty string.
对于每个受支持的操作,设计所有错误的填充方法,例如空格、很长的字符串、格式错误的数据、重音字符或不常见的字符。
For each supported action, devise all the wrong ways to fill it in, such as blank, very large strings, ill-formatted data, or accented or unusual characters.
换言之,就是需要一个不带空格、标点等字符的字符串。
In other words, you need a string with no Spaces, punctuation, etc.
第二个参数严格匹配一个非字母和数字组成的字符串,该字符串后面依次为空格、整数、另一个空格,最后是一个实数。
The second argument strictly matches a non-alphanumeric string followed by a space followed by an integer followed by another space and finally a real number.
使用空格分隔字符串、整数和实数。
Blank Spaces separate the string, integer, and real Numbers.
首先,需要删除输入字符串中的空格。
如果容器名称中在数据库分区表达式后面没有空格字符,则认为剩下的字符串是表达式的一部分。
If there is no space character in the container name after the database partition expression, it is assumed that the rest of the string is part of the expression.
当服务器对这个字符串进行解码时,任何+字符都会被还原成一个空格。
When the server decodes the string, any + character is reverted to a space.
这是一个符合RFC 1738 的有效URL编码,但如果将这个已编码的字符串提交给服务器端脚本,例如 JSP,结果将是一个空格而不是 +字符。
This is a valid URL encoding as specified by RFC 1738, but if you submit the encoded string to a server-side script such as a JSP, you will get a space instead of the + character.
只需对字符串扫描一次,就可以用逗号替换空格,反之亦然,同时还可以加入控制字符。
Replacing Spaces with commas and vice versa can be done in a single scan over the string, and the control characters are injected at the same time.
在处理数据时,一个规范化字符串将告诉XML处理器删除字符串两边的不必要空格。
A normalized string simply tells the XML processor to remove any unnecessary extra white space surrounding the string when processing the data.
问号(?)与后面的文本字符串之间至少要隔开一个空格。
At least one blank space must separate the question mark (?) from the text string that follows.
如果正在处理已格式化的字符串,则需要特别注意空格问题。
If you are dealing with the formatted string, you need to pay special attention to the blank space issue.
绝大多数情况下,这些字符串属于一条单一语句,并且很容易犯下在字符串两侧遗漏空格的错误。
Most of the time, these strings are part of a single statement, and it's easy to make the mistake of leaving out a space on either side of the strings.
它先将您的字符串参数写至标准错误(提供它用于定制消息),接下来写入一个冒号和一个空格,然后是系统错误消息,后面是新的一行。
It writes your string argument to stderr (standard error), followed by a colon and a space, then the system error message followed by a newline.
skip变量设置为' '(空字符串),所以所有输入(包括空格)都转至标志伪指令。
The skip variable was set to "(empty string), so all input, including Spaces, goes to the token directive."
一定要在class属性字符串检查中包含前导和尾部空格。
Be sure to include a leading and trailing blank in your class attribute string check.
第一个规则表达式将与后面依次跟有任意数量的空格或制表键以及开始圆括号的字符串“main ”匹配。
The first regular expression will match the string "main" followed by any number of Spaces or tabs, followed by an open parenthesis.
将字符串内的空格序列替换为单个空格。
Replace sequences of white-space within the string with a single space.
正如您可以从输出(清单2)中看到的,perror函数显示了传递给它的字符串,后跟冒号、空格,接着是当前errno值的文字表示形式。
As you can see from the output (Listing 2), the perror function displays the string you pass to it, followed by a colon, a space, and then the textual representation of the current errno value.
空格出现在字符串的结束位置。
RTRIM RTRIM (p. d escription)返回一个字符串,其中输入值结尾处的所有空格都被移除。
RTRIM RTRIM (p.description) Returns a character string in which all Spaces at the end of the input value have been removed.
调用 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.
图4显示了dnt字符串的一个例子,以及一种很好的关键字表达方式,这种方式将单词组合成字符串,中间不留空格(例如WebSite通常是关键字)。
Figure 4 shows you an example of DNT strings and a good practice of keyword expression because the strings combined without Spaces between words such as WebSite are usually keywords.
由于ElementTree的Element实例有一个单一的.text属性-包含一个字符串-它并不真正为断开的字符串序列保留空格。
Since an ElementTree Element instance has a single.text attribute — which contains a string — that does not really leave space for a broken sequence of strings.
toCollection方法以空格来分割字符串,然后返回一个包含这些子字符串的Array(数组)。
The toCollection method splits a string on spaces and returns an Array containing the substrings.
实际上,在Rexx中“数组”就是由空格隔开的字符串。
In fact, "arrays" in Rexx just amount to whitespace-separated strings.
然后,split方法返回一个数组,其中保存了根据空格字符将给定字符串分割成子字符串的结果。
The split method then returns an array holding the strings that resulted from separating the given string into substrings, as delimited by the space character.
那么最不容易被破解的密码,将是由完全随机的字母、数字、空格和符号组成的一串很长的字符-但你永远记不住它。
The least hackable password, then, would be a long string of completely random letters, numbers, spaces and symbols – but you'd never remember it.
应用推荐