magic-regexp
This library wants to simplify your regex-experience without the need to learn regex everytime you need to work with it. So it implements an easy to read syntactic. Also it can be used to work with the excellent regex crate. So you not have to implement random regex-strings anymore, instead you write native and readable rust
-code.
Documentation
The documentation can be found here.
Usage
To bring this crate into your repository, either add magic-regexp to your Cargo.toml, or run cargo add magic-regexp
.
Here's a simple example that matches a date in YYYY-MM-DD format and prints the year, month and day:
use ;
use Regex;
Help wanted
This is my first rust library, I'm not sure if I'm doing everything right. So if you have any suggestions or find bugs, please let me know in the github issues.
Inspiration
This library is heavily inspired by magic-regexp.