您搜索了: it makes no sense (简体中文 - 英语)

简体中文

翻译

it makes no sense

翻译

英语

翻译
翻译

使用 Lara 即时翻译文本、文件和语音

立即翻译

人工翻译

来自专业的译者、企业、网页和免费的翻译库。

添加一条翻译

简体中文

英语

信息

简体中文

the function parses the xml document in str and returns a tree php objects as the parsed document. this function is isolated from the other functions, which means you cannot access the tree with any of the other functions. modifying it, for example by adding nodes, makes no sense since there is currently no way to dump it as an xml file. however this function may be valuable if you want to read a file and investigate the content.

英语

modifying it, for example by adding nodes, makes no sense since there is currently no way to dump it as an xml file.

最后更新: 2011-10-24
使用频率: 1
质量:

简体中文

an assertion is a test on the characters following or preceding the current matching point that does not actually consume any characters. the simple assertions coded as \b, \b, \a, \z, \z, ^ and $are described above. more complicated assertions are coded as subpatterns. there are two kinds: those that look ahead of the current position in the subject string, and those that look behind it. an assertion subpattern is matched in the normal way, except that it does not cause the current matching position to be changed. lookahead assertions start with (?= for positive assertions and (?! for negative assertions. for example, \w+(?=;) matches a word followed by a semicolon, but does not include the semicolon in the match, and foo(?!bar) matches any occurrence of "foo" that is not followed by "bar". note that the apparently similar pattern (?!foo)bar does not find an occurrence of "bar" that is preceded by something other than "foo"; it finds any occurrence of "bar" whatsoever, because the assertion (?!foo) is always true when the next three characters are "bar". a lookbehind assertion is needed to achieve this effect. lookbehind assertions start with (? = for positive assertions and (?! for negative assertions. for example, (? !foo)bar does find an occurrence of "bar" that is not preceded by "foo". the contents of a lookbehind assertion are restricted such that all the strings it matches must have a fixed length. however, if there are several alternatives, they do not all have to have the same fixed length. thus (? =bullock_bar_donkey) is permitted, but (? !dogs?_bar_cats?) causes an error at compile time. branches that match different length strings are permitted only at the top level of a lookbehind assertion. this is an extension compared with perl 5.005, which requires all branches to match the same length of string. an assertion such as (? =ab(c_bar_de)) is not permitted, because its single top-level branch can match two different lengths, but it is acceptable if rewritten to use two top-level branches: (? =abc_bar_abde) the implementation of lookbehind assertions is, for each alternative, to temporarily move the current position back by the fixed width and then try to match. if there are insufficient characters before the current position, the match is deemed to fail. lookbehinds in conjunction with once-only subpatterns can be particularly useful for matching at the ends of strings; an example is given at the end of the section on once-only subpatterns. several assertions (of any sort) may occur in succession. for example, (? =\d{3})(? !999)foo matches "foo" preceded by three digits that are not "999". notice that each of the assertions is applied independently at the same point in the subject string. first there is a check that the previous three characters are all digits, then there is a check that the same three characters are not "999". this pattern does not match "foo" preceded by six characters, the first of which are digits and the last three of which are not "999". for example, it doesn't match "123abcfoo". a pattern to do that is (? =\d{3}...)(? !999)foo this time the first assertion looks at the preceding six characters, checking that the first three are digits, and then the second assertion checks that the preceding three characters are not "999". assertions can be nested in any combination. for example, (? =(? !foo)bar)baz matches an occurrence of "baz" that is preceded by "bar" which in turn is not preceded by "foo", while (? =\d{3}(?!999)...)foo is another pattern which matches "foo" preceded by three digits and any three characters that are not "999". assertion subpatterns are not capturing subpatterns, and may not be repeated, because it makes no sense to assert the same thing several times. if any kind of assertion contains capturing subpatterns within it, these are counted for the purposes of numbering the capturing subpatterns in the whole pattern. however, substring capturing is carried out only for positive assertions, because it does not make sense for negative assertions. assertions count towards the maximum of 200 parenthesized subpatterns.

英语

the special the special item (?r) is provided for the specific case of recursion.

最后更新: 2011-10-24
使用频率: 1
质量:

警告:包含不可见的HTML格式

一些相关性较低的人工翻译已被隐藏。
显示低相关性结果。

获取更好的翻译,从
8,920,033,893 条人工翻译中汲取

用户现在正在寻求帮助:



Cookie 讓我們提供服務。利用此服務即表示你同意我們使用Cookie。 更多資訊。 確認