REDET(1)
β¨ REDET(1) β the redet page, section 1 of the User Commands manual β¨
okay bestie, pull up a chair π«Ά this is redet, and it's genuinely one of those tools that makes you go "wait, why is nobody talking about this". let's get into it π
πΈ NAME πΈ
redet β regular expression development and execution tool
like, it's a whole workshop for building regexes, not just a matcher. iconic behavior honestly π
π SYNOPSIS π
redet <options> [<input file>]
π¦ DESCRIPTION π¦
so here's the vibe: redet lets you construct regular expressions and then test them against real input data by actually running them through any of a whole buffet of search programs, editors, and programming languages that use regexes. it's giving "try it on, see how it looks in the mirror". and once you've built a regex you're actually happy with? you can save it to a file. slay π
redet currently supports over fifty different programs and regular expression libraries. fifty. five-zero. no cap. that lineup includes:
- multiple versions of
grep - several editors β
Ed,Emacs,Sed,Vim - all the popular scripting languages β
Awk,Perl,Python,Ruby,Tcl - some less popular ones β
Lua,Pike,Rebol - most shells β
Bash,Ksh,Tcsh,Zsh - and various other languages, including
Guile,IconandJava
for each program, there's a palette showing you the available regular expression syntax. and the way you use it? mouse click, and the selection gets copied straight into the regular expression window. so easy. you can also add your own definitions to that palette through your initialization file β make it yours, bestie β¨
redet also keeps a list of the regular expressions you've executed, and you can copy entries from that list right back into the regex you're currently building. and here's the part that ate: that history list gets saved to a file and restored on startup, so it persists across sessions. your past self is looking out for your future self. we love to see it π«Ά
redet gives you both regular expression matching and substitution β as long as the underlying program does. (iykyk, it's a team effort.)
and yeah, even though redet is primarily an interface for other programs, it's got some features of its very own:
- you can define named character classes inside
redetitself - and you can intersect them
which gives you a way of searching on feature matrices. main character energy from a character class, honestly π
now, Unicode. so long as the underlying program supports Unicode, redet allows UTF-8 Unicode in both your test data and your regular expressions. several tools go even further with Unicode support, including:
- popup lists of Unicode ranges and general character properties
- a widget for entering characters by their numerical code
- widgets for entering International Phonetic Alphabet characters
- widgets for entering letters with a variety of accents and other diacritics
and get this β internal operations are entirely in Unicode, but your test data, comparison data, and results can be read and written in any encoding supported by Tcl/Tk. flexible. gorgeous. no notes.
redet is fully internationalized too π if a suitable message catalogue is provided, the interface can be made available in any language and writing system supported by Unicode β as long as the necessary fonts are available. global queen π
need usage info? run redet with the command line flag -h. that's it, that's the move.
full information about redet lives in the reference manual, which is a whole set of web pages. the master copy is at:
http://www.cis.upenn.edu/~wjposer/RedetManual/Manual.html
the entry Illustrated Web Manual on the Help menu will take you to the master manual page. and the manual pages are packaged with every copy of redet, so they're always right there with you π
π OPTIONS π
one bullet per flag, bestie, no skipping:
-c <file name>β read character class definitions from the named file-dβ set the debug flag. this causes additional information to be printed during program execution. it's mostly useful for developers.-F <filename>β read a feature list from<filename>-fβ act as a filter. this means input is read from the standard input and output is written to the standard output.-Hβ do not read the history file-hβ print this help information-I <file>β read<file>as the initialization file-iβ do not read the initialization file-nβ do not execute feature tests on startup-Pβ list the programs supported and indicate which are available-p <program>β use the named program-sβ start up in substitution mode-tβ show the results of feature tests-vβ print the program name and version, then exit
π SEE ALSO π
awk (1)ed (1)grep (1)perl (1)sed (1)
π AUTHOR π
Bill Poser (billposer@alum.mit.edu)
π LICENSE π
GNU General Public License (http://www.gnu.org/licenses/gpl.txt), version 2.
heads up bestie: that license is the GNU General Public License, version 2 β not a vibe, a legal thing. read it, respect it π«Ά
okay that's the whole page!! this was redet, from May 2007, and the page itself comes from the redet source. go build something gorgeous with it, bestie πβ¨ππ¦πΈ
π¦ where this page comes from
- debian bookworm: redet 8.26-1.5
- debian trixie: redet 8.26-1.5
- ubuntu jammy: redet 8.26-1.4
- ubuntu noble: redet 8.26-1.5
- ubuntu questing: redet 8.26-1.5
- ubuntu resolute: redet 8.26-3 Β· GPL-3.0-or-later
- ubuntu stonking: redet 8.26-3 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms