YANG Regular Expressions processor. Usage: yangre [-hv] yangre [-V] -p [-i] [-p [-i] ...] yangre [-V] -f Returns 0 if string matches the pattern(s) or if otherwise successful. Returns 1 on error. Returns 2 if string does not match the pattern(s). Options: -h, --help Show this help message and exit. -v, --version Show version number and exit. -V, --verbose Print the processing information. -i, --invert-match Invert-match modifier for the closest preceding pattern. -p, --pattern="REGEXP" Regular expression including the quoting, which is applied the same way as in a YANG module. -f, --file="FILE" List of patterns and the (separated by an empty line) are taken from . Invert-match is indicated by the single space character at the beginning of the pattern line. YANG quotation around patterns is still expected, but that avoids issues with reading quotation by shell. Avoid newline at the end of the string line to represent empty .Examples: pattern "[0-9a-fA-F]*"; -> yangre -p '"[0-9a-fA-F]*"' '1F' pattern '[a-zA-Z0-9\-_.]*'; -> yangre -p "'[a-zA-Z0-9\-_.]*'" 'a-b' pattern [xX][mM][lL].*; -> yangre -p '[xX][mM][lL].*' 'xml-encoding' Note that to pass YANG quoting through your shell, you are supposed to use the other quotation around. For not-quoted patterns, use single quotes.