/regex-builder

a lib for making regex programmatically

Primary LanguagePythonMIT LicenseMIT

Regex builder

programmatically make regex in python

Simple example

from regex_builder import Regex, Any


regex = (
    Regex()
    .section(Any("a", "b", "c"))
    .section("hello")
)

print(regex)