root-hunter / reverse-regex

Repository from Github https://github.comroot-hunter/reverse-regexRepository from Github https://github.comroot-hunter/reverse-regex

reverse-regex ๐Ÿ”„๐Ÿ”ก

reverse-regex is a Rust library that generates strings based on regular expressions. Given a regex pattern, the tool produces random strings that conform to the specified format. This is particularly useful for tasks such as automated testing, data generation, and fuzzing.

The project includes a demo compiled to WebAssembly, allowing you to generate strings from regex patterns directly in the browser.

Features โœจ

  • ๐Ÿ”ง Generate valid strings from any regular expression pattern.
  • โšก Full support for Rust standard regex syntax.
  • ๐ŸŒ WebAssembly build for easy browser-based usage.

Live Demo ๐Ÿš€

You can try out the live demo of the project, where you can input a regular expression and get a generated string that matches it. The demo is compiled to WebAssembly for direct use in the browser.

๐ŸŽฎ Try the live demo here!

Installation ๐Ÿ“ฆ

To use reverse-regex in your Rust project, follow these steps:

  1. Add the following line to your Cargo.toml:
    [dependencies]
    reverse-regex = "0.1.0"

About

License:MIT License


Languages

Language:Rust 94.3%Language:Makefile 5.7%