remake
A rust library for writing maintainable regex. Regex are wonderful things, but they lack tools for abstraction and modularity. When regex are small, this is not a big issue, but as they grow larger it can become frustrating to maintain them. Remake allows you to name individual regex and combine them just like you would combine strings or numbers in a traditional programming language. When you want to use the terse regex syntax that you know and love, you still can, but when you want to break things down into bite sized pieces it is easy.
Documentation
The module docs contain a full explanation of the remake language with inline examples.
Usage
Add this to your Cargo.toml
:
[]
= "0.1.0"
and this to your crate root:
extern crate remake;
Here is a simple example that builds a toy URI validator
extern crate remake;
use Remake;