From professional translators, enterprises, web pages and freely available translation repositories.
end min/max quantifier
the following patterns all behave in exactly the same way: (?i)abc a(?i)bc ab(?i)c abc(?i) which in turn is the same as compiling the pattern abc with pcre_caseless set.
Last Update: 2011-10-24
Usage Frequency: 1
Quality:
start min/max quantifier
it is also possible to unset these options by preceding the letter with a hyphen, and a combined setting and unsetting such as (?im-sx), which sets pcre_caseless and pcre_multiline while unsetting pcre_dotall and pcre_extended, is also permitted.
Last Update: 2011-10-24
Usage Frequency: 1
Quality:
outside a character class, a backslash followed by a digit greater than 0 (and possibly further digits) is a back reference to a capturing subpattern earlier (i.e. to its left) in the pattern, provided there have been that many previous capturing left parentheses. however, if the decimal number following the backslash is less than 10, it is always taken as a back reference, and causes an error only if there are not that many capturing left parentheses in the entire pattern. in other words, the parentheses that are referenced need not be to the left of the reference for numbers less than 10. see the section entitled "backslash" above for further details of the handling of digits following a backslash. a back reference matches whatever actually matched the capturing subpattern in the current subject string, rather than anything matching the subpattern itself. so the pattern (sens_bar_respons)e and \1ibility matches "sense and sensibility" and "response and responsibility", but not "sense and responsibility". if caseful matching is in force at the time of the back reference, then the case of letters is relevant. for example, ((?i)rah)\s+\1 matches "rah rah" and "rah rah", but not "rah rah", even though the original capturing subpattern is matched caselessly. there may be more than one back reference to the same subpattern. if a subpattern has not actually been used in a particular match, then any back references to it always fail. for example, the pattern (a_bar_(bc))\2 always fails if it starts to match "a" rather than "bc". because there may be up to 99 back references, all digits following the backslash are taken as part of a potential back reference number. if the pattern continues with a digit character, then some delimiter must be used to terminate the back reference. if the pcre_extended option is set, this can be whitespace. otherwise an empty comment can be used. a back reference that occurs inside the parentheses to which it refers fails when the subpattern is first used, so, for example, (a\1) never matches. however, such references can be useful inside repeated subpatterns. for example, the pattern (a_bar_b\1)+ matches any number of "a"s and also "aba", "ababaa" etc. at each iteration of the subpattern, the back reference matches the character string corresponding to the previous iteration. in order for this to work, the pattern must be such that the first iteration does not need to match the back reference. this can be done using alternation, as in the example above, or by a quantifier with a minimum of zero.
if no memory can be obtained, it saves data for the first 15 capturing parentheses only, as there is no way to give an out-of-memory error from within a recursion.
Last Update: 2011-10-24
Usage Frequency: 1
Quality:
Warning: Contains invisible HTML formatting