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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file regex-generator-lib-1.1.0.tar.gz.
File metadata
- Download URL: regex-generator-lib-1.1.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77f8538879b0f6f81d36c6cf9a7ddab3c356d15c16a8673bf6449385c720df17
|
|
| MD5 |
1bd5ce885ad87578306bb0542c54ee82
|
|
| BLAKE2b-256 |
edf2ddbe8fc45e3af170b231c8602addeb346dc9264a710d06695b53103ac2fa
|