Skip to content
Nirmal Dahal

2 Aug 2023 · 1 min read

Navigating the regex maze with ease: ReGen

ReGen is a small open source tool that builds regex patterns from values you select in logs or text, for forensics, attack, defence and validation work.

By Nirmal Dahal

The ReGen regex generator with a web server log sample, beside regex101 showing the same log

Overview

The ReGen is a utility tool that simplifies the process of crafting Regex expressions. With this tool, users can effortlessly generate Regex patterns by selecting desired values from logs or text. While it's still in its initial stages and may not be perfect, it aims to address the tediousness of Regex writing for various use cases, including digital forensics, attack, defense, and validation scenarios. By reducing the time spent on Regex creation, I hope to boost the overall work efficiency of professionals working with Regex.

The ReGen regex generator running on localhost beside regex101, showing the log-sample input and regex output panes

https://github.com/TheNittam/ReGen/ (opens in a new tab)

Features

  • Select values from logs or text to automatically generate corresponding Regex expressions.

  • Inspired by the efficient Grep & Extract feature of BurpSuite, making it user-friendly and intuitive.

  • Simplify the process of crafting complex Regex patterns.

Contributing

I welcome contributions from the community to make this tool even more powerful and robust. If you have any ideas, bug fixes, or feature suggestions, please feel free to open an issue or submit a pull request. Let's collaborate to simplify Regex writing for everyone!

Roadmap

Our future plans for the Regex Generator Tool include:

  • Enhancing the user interface for a more seamless experience.

  • Adding support for additional log and text formats.

  • Implementing advanced Regex generation algorithms.

  • Integrating feedback and suggestions from users.

Stay tuned for more exciting updates!

Let's scope it together.

Tell me what you need to protect and by when. I'll reply with whether I can help and how I'd approach it.