• Home
  • Raw
  • Download

Lines Matching refs:matches

139 * Assertions::                      Allows for complex look ahead matches
467 This @acronym{GNU} extension matches every @var{step}th line
482 This address matches the last line of the last file of input, or
489 This will select any line which matches the regular expression @var{regexp}.
505 This also matches the regular expression @var{regexp},
575 separated by a comma (@code{,}). An address range matches lines
576 starting from where the first address matches, and continues
577 until the second address matches (inclusively).
607 except that if @var{addr2} matches the very first line of input the
652 matches a portion of a subject string that is identical to
662 A single ordinary character matches itself.
666 Matches a sequence of zero or more instances of matches for the
679 As @code{*}, but matches one or more. It is a @acronym{GNU} extension.
683 As @code{*}, but only matches zero or one. It is a @acronym{GNU} extension.
686 As @code{*}, but matches exactly @var{i} sequences (@var{i} is a
748 @code{[aeiou]} matches all vowels. A list may include
750 matches any character between (inclusive) @var{char1}
754 it matches any single character @emph{not} in @var{list}. To include
763 matches either @samp{\} or @samp{*}, because the @code{\} is not
801 @code{\t} is not portable, and matches a @samp{t} under most
807 Note that the regular expression matcher is greedy, i.e., matches
808 are attempted from left to right and, if two or more matches are
833 however, the first matches every string (including the empty
834 string), while the second matches only strings containing
838 his matches a string starting with @samp{main},
844 This matches a string beginning with @samp{#}.
847 This matches a string ending with a single backslash. The
851 Instead, this matches a string consisting of a single dollar sign,
855 In the C locale, this matches any @acronym{ASCII} letters or digits.
859 This matches a string of one or more
864 This matches a string consisting of two equal substrings separated by
868 This matches nine characters followed by an @samp{A}.
871 This matches the start of a string that contains 16 characters,
1020 Apply the replacement to @emph{all} matches to the @var{regexp},
1034 ignore matches before the @var{number}th,
1035 and then match and replace all matches from
1513 example, @samp{\*} matches a single asterisk rather than zero
1536 Produces or matches a @sc{bel} character, that is an ``alert'' (@sc{ascii} 7).
1539 Produces or matches a form feed (@sc{ascii} 12).
1542 Produces or matches a newline (@sc{ascii} 10).
1545 Produces or matches a carriage return (@sc{ascii} 13).
1548 Produces or matches a horizontal tab (@sc{ascii} 9).
1551 Produces or matches a so called ``vertical tab'' (@sc{ascii} 11).
1554 Produces or matches @kbd{@sc{Control}-@var{x}}, where @var{x} is
1561 Produces or matches a character whose decimal @sc{ascii} value is @var{xxx}.
1567 Produces or matches a character whose octal @sc{ascii} value is @var{xxx}.
1575 Produces or matches a character whose hexadecimal @sc{ascii} value is @var{xx}.
1593 Matches a word boundary; that is it matches if the character
1598 Matches everywhere but on a word boundary; that is it matches
1684 # \2 matches half of the spaces, which are moved to the beginning
1930 # Move first character at the end. The regexp matches until
2569 relevant to single pattern matches.
2591 5.005_02 the pattern @samp{/^(a)?(?(1)a|b)+$/} matches
2698 characters. So, @code{x\+} matches one or more occurrences of @samp{x}.
2699 @code{abc\|def} matches either @samp{abc} or @samp{def}.
2778 the regular expression @code{^[a-z]$} matches the string @samp{aa},
2820 becomes @samp{abc\?} when using extended regular expressions. It matches
2824 becomes @samp{c+} when using extended regular expressions. It matches
2828 becomes @samp{a@{3,@}} when using extended regular expressions. It matches
2833 matches either @samp{abcabc} or @samp{abcabcabc}.
2894 You can do recursive matches, for example to look for unbalanced parentheses
2919 * Assertions:: Allows for complex look ahead matches
3018 match @code{\w} or @code{\W} (i.e. one matches @code{\w} and
3019 the other matches @code{\W}), or the start or end of the string
3020 if the first or last character matches @code{\w}, respectively.
3088 example, the pattern @code{/^abc$/} matches the subject string
3101 Outside a character class, a dot in the pattern matches any
3120 A character class matches a single character in the subject;
3128 For example, the character class [aeiou] matches any lower
3129 case vowel, while [^aeiou] matches any character that is not
3140 for example, a caseless @code{[aeiou]} matches uppercase
3153 matches any letter between d and m, inclusive. If a minus
3172 caseless matching is set, it matches the letters in either
3176 matches accented E characters in both cases.
3181 that they match to the class. For example, @code{[\dABCDEF]} matches any
3185 For example, the class @code{[^\W_]} matches any letter or digit,
3203 matches @samp{0}, @samp{1}, any alphabetic character, or @samp{%}.
3256 matches @samp{1}, @samp{2}, or any non-digit.
3309 matches abc and aBc and no other strings (assuming
3321 matches @samp{ab}, @samp{aB}, @samp{c}, and @samp{C},
3419 maximum number of permitted matches, by giving the two
3429 matches @samp{zz}, @samp{zzz}, or @samp{zzzz}. A closing brace on its own
3433 specifies an exact number of required matches. Thus
3440 matches at least 3 successive vowels, but may match many
3448 matches exactly 8 digits. An opening curly bracket that
3511 fails, because it matches the entire string owing to the
3515 ceases to be greedy, and instead matches the minimum number
3519 number of matches. Do not confuse this use of question
3527 which matches one digit by preference, but can match two if
3528 that is the only way the rest of the pattern matches.
3573 matches @samp{aba}, the value of the second captured substring is
3594 A back reference matches whatever actually matched the capturing
3603 matches @samp{sense and sensibility} and @samp{response and responsibility},
3613 matches @samp{blah blah} and @samp{Blah Blah}, but not
3642 example, @code{(a\1)} never matches. However, such references
3651 matches any number of @samp{a}s and also @samp{aba}, @samp{ababbaa},
3652 etc. At each iteration of the subpattern, the back reference matches
3683 matches a word followed by a semicolon, but does not include
3691 matches any occurrence of @samp{foo} that is not followed by
3716 such that all the strings it matches must have a fixed
3768 matches @samp{foo} preceded by three digits that are not @samp{999}.
3876 each @samp{a} in the subject and then see if what follows matches
3884 the initial @code{.*} matches the entire string at first, but when
3904 avoid some failing matches taking a very long time
3909 like @code{\/\*([^*]*\*)*\/} which matches C comments.}
3920 matches an unlimited number of substrings that either consist
3922 an exclamation or question mark. When it matches, it runs quickly.
3979 The first part matches an optional opening parenthesis, and
3981 substring. The second part matches one or more characters
3988 subpattern matches nothing. In other words, this pattern
3989 matches a sequence of non-parentheses, optionally enclosed
4005 The condition is a positive lookahead assertion that matches
4021 that matches up to some fixed depth of nesting. It is not
4046 First it matches an opening parenthesis. Then it matches any