Rex is a shell tool for processing text files using regular expressions. Two specific tools are provided: a substitution tool (similar to rpl or sed and vi's 's///' (subst) commands) and a parsing tool which can be used to parse fields out of an input string and format them (similar to cut but using regular expressions). Extended regular expressions are used in all cases.

Rex's substitution tool supports a 'preview' mode in which the changes that would be made are displayed in a diff-like format but no changes are actually made. The substitution tool can also create backups of the original files.

Rex's parsing tool can format its output in several different ways including user-defined formats. Notable formats are the SHELL variable-like syntax (designed for 'sourcing' into the shell) and the CSV format.

Please see the help text (rex --help) and/or the wiki for complete details.

Project Activity

See All Activity >

Follow rex-text-tool

rex-text-tool Web Site

Other Useful Business Software
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

The database for AI-powered applications.

MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of rex-text-tool!

Additional Project Details

Registered

2018-11-01