1CHECK-REGEXP(1) User Commands CHECK-REGEXP(1)
2
3
4
6 check-regexp - test regular expressions from the command line
7
9 check-regexp 'regular expression' 'string1' 'string2' ...
10
12 check-regexp (GNU Source-highlight)
13
14 You simply pass as the first command line argument the regular expresâ
15 sion and then the strings you want to try to match.
16 It is crucial, in order to avoid shell substitutions, to enclose both
17 the expression and the strings in single quotes.
18
19 The program then prints some information about the possibly successful
20 matching.
21 In the output the what[0] part represents the whole match, and the
22 what[i] part represents the i-th marked subexpression that matched.
23
24 The program also prints possible prefix and suffix.
25
27 This program follows the usual GNU command line syntax, with long
28 options starting with two dashes (`-'). A summary of options is
29 included below.
30
31 -h, --help
32 Print help and exit
33
34 -V, --version
35 Print version and exit
36
38 check-regexp was written by Lorenzo Bettini <www.lorenzobettini.it>.
39 This man page was written by Cesare Tirabassi <norsetto@ubuntu.com>.
40
41
42
43check-regexp 2.9 June 2008 CHECK-REGEXP(1)