Actions Status MetaCPAN Release

NAME

App::Greple::xp - extended pattern module

VERSION

Version 1.01

SYNOPSIS

greple -Mxp

DESCRIPTION

This module provides functions those can be used by greple pattern and region options.

OPTIONS

COMMENT

You can insert comment lines in pattern file. As for fixed string file, there is no way to write comment.

Lines start with hash mark (#) is ignored as a comment line.

String after double slash (//) is also ignored with preceding spaces.

MULTILINE REGEX

Complex pattern can be written on multiple lines as follows.

(?xxn) \
( (?<b>\[) | \@ )   # start with "[" or @             \
(?<n> [ \d : , ]+)  # sequence of digit, ":", or ","  \
(?(<b>) \] | )      # closing "]" if start with "["   \
$                   # EOL

WILD CARD

Because file parameter is globbed, you can use wild card to give multiple files. If nothing matched to the wild card, this option is simply ignored with no message.

$ greple -Mxp --exclude-pattern '*.exclude' ...

SEE ALSO

https://github.com/kaz-utashiro/greple

https://github.com/kaz-utashiro/greple-xp

AUTHOR

Kazumasa Utashiro

LICENSE

Copyright 2019-2025 Kazumasa Utashiro.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.