dbuhlbrown / Regex-Generator

This project was created as an experiment to see how accurately I can generate valid regex when simply given a string(s) to match.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Regex-Generator

This project was created as an experiment to see how accurately I can generate valid regex when simply given a string(s) to match.

#How to use

#Basic Example:

from RegexGenerator import RegexGenerator

myRegexGenerator = RegexGenerator("123-555-7676")

print(myRegexGenerator).get_regex()

#Expected Output:

\d{3}[-]\d{3}[-]\d{4}

About

This project was created as an experiment to see how accurately I can generate valid regex when simply given a string(s) to match.

License:MIT License


Languages

Language:Python 100.0%