Lines Matching full:patterns
37 <b>pcregrep</b> searches files for character patterns, in the same way as other
39 patterns that are compatible with the regular expressions of Perl 5. See
47 Patterns, whether supplied on the command line or in a separate file, are given
54 pattern. Quotes can of course be used to delimit patterns on the command line
61 Conversely, when one or both of these options are used to specify patterns, all
76 possible to search for patterns that span line boundaries. What defines a line
88 Patterns can be no longer than 8K or BUFSIZ bytes, whichever is the greater.
92 patterns are tried before the <b>-f</b> patterns.
95 By default, as soon as one pattern matches a line, no further patterns are
101 there are multiple patterns, they are all tried on the remainder of the line,
102 but patterns that follow the one that matched are not tried on the earlier part
106 This behaviour means that the order in which multiple patterns are specified
109 for later patterns (as long as there is no overlap).
112 Patterns that can match an empty string are accepted, but empty string
152 processing of patterns and filenames that start with hyphens.
252 order to specify several patterns. It can also be used as a way of specifying a
255 names. There is no limit to the number of patterns. They are applied to each
259 If <b>-f</b> is used with <b>-e</b>, the command line patterns are matched first,
260 followed by the patterns from the file(s), independent of the order in which
263 character in a line that is X or Y, whereas if the two patterns are given
277 specify multiple patterns. If a file name matches both an <b>--include</b>
310 option applies only to the patterns that are matched against the contents of
311 files; it does not apply to patterns specified by any of the <b>--include</b> or
316 Read patterns from the file, one per line, and match them against
320 ignored. An empty file contains no patterns and therefore matches nothing. See
321 also the comments about multiple patterns versus a single pattern with
326 read. A data line is output if any of the patterns match it. A filename can
327 be given as "-" to refer to the standard input. When <b>-f</b> is used, patterns
329 tested before the file's patterns. However, no other pattern is taken from the
338 If <b>--file</b> and <b>--file-list</b> are both specified as "-", patterns are
385 If any <b>--include</b> patterns are specified, the only files that are
386 processed are those that match one of the patterns (and do not match an
405 If any <b>--include-dir</b> patterns are specified, the only directories that
406 are processed are those that match one of the patterns (and do not match an
467 Processing some regular expression patterns can require a very large amount of
469 Other patterns may take a very long time to search for all possible matching
475 when processing patterns that are not going to match, but which have a very
497 Allow patterns to match more than one line. When this option is given, patterns
612 with UTF-8 support. All patterns (including those for any <b>--exclude</b> and
625 the patterns are the ones that are found.
629 Force the patterns to match only whole words. This is equivalent to having \b
630 at the start and end of the pattern. This option applies only to the patterns
631 that are matched against the contents of files; it does not apply to patterns
636 Force the patterns to be anchored (each must start matching at the beginning of
639 every pattern. This option applies only to the patterns that are matched
640 against the contents of files; it does not apply to patterns specified by any
717 fail to match certain lines. Such patterns normally involve nested indefinite