yangre
YANG regular expression processor
- Provided by: libyang2-tools (Version: 2.0.112-6ubuntu2)
- Source: libyang2
- Report a bug
YANG regular expression processor
yangre [-V] -p REGEXP [-i] [-p REGEXP
[-i]...] STRING
yangre [-V] -f FILE
yangre is a command-line tool to test and evaluate regular expressions for use in YANG schemas. Supported regular expressions are defined by the W3C's XML-Schema standard.
yangre can be used either with regular expressions and a target string on the command line or with input from a file. The latter is particularly useful to avoid dealing with proper shell escaping of regular expression patterns, which can be somewhat tricky.
FILE must consist of one or more YANG regular expressions, each on their own line, followed by a blank line and one line of target text. No preprocessing is done on file input, there are no comment lines and whitespace is not stripped. A single space character at the beginning of a pattern line inverts the match condition for the pattern on that line. Patterns must still be properly quoted as mandated by the YANG standard.
pat2testpat1
EOF
yangre -f /tmp/patterns
https://github.com/CESNET/libyang (libyang homepage and Git repository)
Radek Krejci <rkrejci@cesnet.cz>, Michal Vasko
<mvasko@cesnet.cz>
This man page was written by David Lamparter <equinox@diac24.net>
Copyright © 2015-2018 CESNET, a.l.e.