Skip to main content

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

Project description

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}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

RegexGenerator-1.1.0.tar.gz (2.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page