1REDET(1)                         User Commands                        REDET(1)
2
3
4

NAME

6       redet - regular expression development and execution tool
7

SYNOPSIS

9       redet <options> [<input file>]
10

DESCRIPTION

12       redet  allows  the  user to construct regular expressions and test them
13       against input data by executing any of a variety  of  search  programs,
14       editors,  and  programming  languages  that make use of regular expres‐
15       sions. When a suitable regular expression has been constructed  it  may
16       be saved to a file.
17
18       Redet  currently  supports  over  fifty  different programs and regular
19       expression libraries. These include multiple versions of grep,  several
20       editors  (Ed,  Emacs,  Sed,  Vim),  all the popular scripting languages
21       (Awk, Perl, Python, Ruby, Tcl) and some less popular ones  (Lua,  Pike,
22       Rebol), most shells (Bash, Ksh, Tcsh, Zsh) and various other languages,
23       including Guile, Icon and Java.
24
25       For each program, a palette showing the  available  regular  expression
26       syntax  is  provided.  Selections from the palette may be copied to the
27       regular expression window with a mouse click. Users may add  their  own
28       definitions  to  the palette via their initialization file.  Redet also
29       keeps a list of the regular expressions executed,  from  which  entries
30       may  be copied back into the regular expression under construction. The
31       history list is saved to a file and restored on startup, so it persists
32       across sessions.
33
34       Redet  provides  both  regular  expression matching and substitution so
35       long as the underlying program does.
36
37       Although Redet is primarily an interface for other  programs,  it  adds
38       some  features  of  its  own.  It is possible to define named character
39       classes within Redet  and to intersect them.  This  allows  provides  a
40       means of searching on feature matrices.
41
42       So  long as the underlying program supports Unicode, redet allows UTF-8
43       Unicode in both test data and regular expressions. Several  tools  pro‐
44       vide  additional  support for Unicode use. These include popup lists of
45       Unicode ranges and general character properties, a widget for  entering
46       characters  by  their numerical code, and widgets for entering Interna‐
47       tional Phonetic Alphabet characters, widgets for entering letters  with
48       a variety of accents and other diacritics. Although internal operations
49       are entirely in Unicode, test data, comparison data, and results may be
50       read  and  written in any encoding supported by Tcl/Tk.  Redet is fully
51       internationalized. If a suitable message  catalogue  is  provided,  the
52       interface may be made available in any language and writing system sup‐
53       ported by Unicode for which the necessary fonts are available.
54
55       For usage information, execute redet with the command line flag -h.
56
57       Full information about redet is available from  the  reference  manual,
58       which  consists  of  a set of web pages. The master copy is located at:
59       http://www.cis.upenn.edu/~wjposer/RedetManual/Manual.html.   The  entry
60       Illustrated  Web  Manual  on  the Help menu will take you to the master
61       manual page.  The manual pages are packaged with every copy of Redet.
62
63

OPTIONS

65       -c <file name>
66              read character class definitions from the named file
67
68       -d     set the debug flag.  This causes additional  information  to  be
69              printed  during  program  execution.   It  is  mostly useful for
70              developers.
71
72       -F <filename>
73              read a feature list from <filename>
74
75       -f     act as a filter. This means that input is read from the standard
76              input and output written to the standard output.
77
78       -H     do not read the history file
79
80       -h     print this help information
81
82       -I <file>
83              read <file> as the initialization file
84
85       -i     do not read the initialization file
86
87       -n     do not execute feature tests on startup
88
89       -P     list the programs supported and indicate which are available
90
91       -p <program>
92              use the named program
93
94       -s     start up in substitution mode
95
96       -t     show the results of feature tests
97
98       -v     print the program name and version, then exit
99

SEE ALSO

101       awk (1), ed (1),grep (1), perl (1), sed (1)
102
103

AUTHOR

105       Bill Poser (billposer@alum.mit.edu)
106

LICENSE

108       GNU  General Public License (http://www.gnu.org/licenses/gpl.txt), ver‐
109       sion 2.
110
111
112
113redet                              May 2007                           REDET(1)
Impressum