• Home
  • Raw
  • Download

Lines Matching refs:matches

140 * Assertions::                      Allows for complex look ahead matches
468 This @acronym{GNU} extension matches every @var{step}th line
483 This address matches the last line of the last file of input, or
490 This will select any line which matches the regular expression @var{regexp}.
506 This also matches the regular expression @var{regexp},
576 separated by a comma (@code{,}). An address range matches lines
577 starting from where the first address matches, and continues
578 until the second address matches (inclusively).
608 except that if @var{addr2} matches the very first line of input the
653 matches a portion of a subject string that is identical to
663 A single ordinary character matches itself.
667 Matches a sequence of zero or more instances of matches for the
680 As @code{*}, but matches one or more. It is a @acronym{GNU} extension.
684 As @code{*}, but only matches zero or one. It is a @acronym{GNU} extension.
687 As @code{*}, but matches exactly @var{i} sequences (@var{i} is a
749 @code{[aeiou]} matches all vowels. A list may include
751 matches any character between (inclusive) @var{char1}
755 it matches any single character @emph{not} in @var{list}. To include
764 matches either @samp{\} or @samp{*}, because the @code{\} is not
802 @code{\t} is not portable, and matches a @samp{t} under most
808 Note that the regular expression matcher is greedy, i.e., matches
809 are attempted from left to right and, if two or more matches are
834 however, the first matches every string (including the empty
835 string), while the second matches only strings containing
839 his matches a string starting with @samp{main},
845 This matches a string beginning with @samp{#}.
848 This matches a string ending with a single backslash. The
852 Instead, this matches a string consisting of a single dollar sign,
856 In the C locale, this matches any @acronym{ASCII} letters or digits.
860 This matches a string of one or more
865 This matches a string consisting of two equal substrings separated by
869 This matches nine characters followed by an @samp{A}.
872 This matches the start of a string that contains 16 characters,
1021 Apply the replacement to @emph{all} matches to the @var{regexp},
1035 ignore matches before the @var{number}th,
1036 and then match and replace all matches from
1514 example, @samp{\*} matches a single asterisk rather than zero
1537 Produces or matches a @sc{bel} character, that is an ``alert'' (@sc{ascii} 7).
1540 Produces or matches a form feed (@sc{ascii} 12).
1543 Produces or matches a newline (@sc{ascii} 10).
1546 Produces or matches a carriage return (@sc{ascii} 13).
1549 Produces or matches a horizontal tab (@sc{ascii} 9).
1552 Produces or matches a so called ``vertical tab'' (@sc{ascii} 11).
1555 Produces or matches @kbd{@sc{Control}-@var{x}}, where @var{x} is
1562 Produces or matches a character whose decimal @sc{ascii} value is @var{xxx}.
1568 Produces or matches a character whose octal @sc{ascii} value is @var{xxx}.
1576 Produces or matches a character whose hexadecimal @sc{ascii} value is @var{xx}.
1594 Matches a word boundary; that is it matches if the character
1599 Matches everywhere but on a word boundary; that is it matches
1694 # \2 matches half of the spaces, which are moved to the beginning
2002 # Move first character at the end. The regexp matches until
2736 relevant to single pattern matches.
2758 5.005_02 the pattern @samp{/^(a)?(?(1)a|b)+$/} matches
2865 characters. So, @code{x\+} matches one or more occurrences of @samp{x}.
2866 @code{abc\|def} matches either @samp{abc} or @samp{def}.
2945 the regular expression @code{^[a-z]$} matches the string @samp{aa},
2987 becomes @samp{abc\?} when using extended regular expressions. It matches
2991 becomes @samp{c+} when using extended regular expressions. It matches
2995 becomes @samp{a@{3,@}} when using extended regular expressions. It matches
3000 matches either @samp{abcabc} or @samp{abcabcabc}.
3061 You can do recursive matches, for example to look for unbalanced parentheses
3086 * Assertions:: Allows for complex look ahead matches
3185 match @code{\w} or @code{\W} (i.e. one matches @code{\w} and
3186 the other matches @code{\W}), or the start or end of the string
3187 if the first or last character matches @code{\w}, respectively.
3255 example, the pattern @code{/^abc$/} matches the subject string
3268 Outside a character class, a dot in the pattern matches any
3287 A character class matches a single character in the subject;
3295 For example, the character class [aeiou] matches any lower
3296 case vowel, while [^aeiou] matches any character that is not
3307 for example, a caseless @code{[aeiou]} matches uppercase
3320 matches any letter between d and m, inclusive. If a minus
3339 caseless matching is set, it matches the letters in either
3343 matches accented E characters in both cases.
3348 that they match to the class. For example, @code{[\dABCDEF]} matches any
3352 For example, the class @code{[^\W_]} matches any letter or digit,
3370 matches @samp{0}, @samp{1}, any alphabetic character, or @samp{%}.
3423 matches @samp{1}, @samp{2}, or any non-digit.
3476 matches abc and aBc and no other strings (assuming
3488 matches @samp{ab}, @samp{aB}, @samp{c}, and @samp{C},
3586 maximum number of permitted matches, by giving the two
3596 matches @samp{zz}, @samp{zzz}, or @samp{zzzz}. A closing brace on its own
3600 specifies an exact number of required matches. Thus
3607 matches at least 3 successive vowels, but may match many
3615 matches exactly 8 digits. An opening curly bracket that
3678 fails, because it matches the entire string owing to the
3682 ceases to be greedy, and instead matches the minimum number
3686 number of matches. Do not confuse this use of question
3694 which matches one digit by preference, but can match two if
3695 that is the only way the rest of the pattern matches.
3740 matches @samp{aba}, the value of the second captured substring is
3761 A back reference matches whatever actually matched the capturing
3770 matches @samp{sense and sensibility} and @samp{response and responsibility},
3780 matches @samp{blah blah} and @samp{Blah Blah}, but not
3809 example, @code{(a\1)} never matches. However, such references
3818 matches any number of @samp{a}s and also @samp{aba}, @samp{ababbaa},
3819 etc. At each iteration of the subpattern, the back reference matches
3850 matches a word followed by a semicolon, but does not include
3858 matches any occurrence of @samp{foo} that is not followed by
3883 such that all the strings it matches must have a fixed
3935 matches @samp{foo} preceded by three digits that are not @samp{999}.
4043 each @samp{a} in the subject and then see if what follows matches
4051 the initial @code{.*} matches the entire string at first, but when
4071 avoid some failing matches taking a very long time
4076 like @code{\/\*([^*]*\*)*\/} which matches C comments.}
4087 matches an unlimited number of substrings that either consist
4089 an exclamation or question mark. When it matches, it runs quickly.
4146 The first part matches an optional opening parenthesis, and
4148 substring. The second part matches one or more characters
4155 subpattern matches nothing. In other words, this pattern
4156 matches a sequence of non-parentheses, optionally enclosed
4172 The condition is a positive lookahead assertion that matches
4188 that matches up to some fixed depth of nesting. It is not
4213 First it matches an opening parenthesis. Then it matches any