grex

grex

Generate regular expressions from test cases

Description

Writing regexes means trial and error, and results often miss or overmatch. grex generates regular expressions from user-provided test cases.

It comes as a CLI, Rust library and Python bindings with tunable precision, plus a web version.

Features



From examples:Regex out.

Precision:Loose or strict.

Forms:CLI, Rust and Python.

Web:Try online.