Skip to content

iuliux/RegExTractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RegExTractor

Python regex extractor (list of strings => Regex)

Gitter

Description

Takes 2 or more strings (or even a single one) and generates a RegEx that matches similar strings. The generated RegEx always matches the original strings, but it also generalizes, usually matching more.

Usage

First of all, you can run the demos found in main.py (in the if __main__ part).

The main function is extract(strs) from main.py that takes a list of strings and returns a string representing the generated regex.

TODO

  • include word-boundries where present

About

Python regex generator (list of strings => Regex)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages