Regex Inverter

Regex Inverter

Generate the set of strings that match a given regex.

Online Regex Inverter

Based on Python library.

Xeger - JAVA implementation: http://code.google.com/p/xeger/ :: xeger - A Java library for generating random text from regular expressions - Google Project Hosting http://blog.flotsam.nl/2009/10/xeger-has-arrived.html :: Distributed Reflections of the Third Kind: Xeger has arrived!!!

Python:

https://bitbucket.org/leapfrogdevelopment/rstr/src :: leapfrogdevelopment / rstr / source / — Bitbucket

apt-get install python-setuptools
wget https://bitbucket.org/leapfrogdevelopment/rstr/get/default.tar.gz -O - | tar zxpf -
cd leapfrogdevelopment-rstr-*
python setup.py install
cd ..
rm -rf leapfrogdevelopment-rstr-*

Exactly what I need:
http://www.gossamer-threads.com/lists/python/python/817345 :: Generating text from a regular expression | Python | Python
http://code.activestate.com/recipes/577041-merge-multiple-potentially-infinite-sorted-inputs-/ :: Merge multiple (potentially infinite) sorted inputs into a single sorted output « Python recipes « ActiveState Code
[Is there a lib to generate data according to a regexp? (Python or other) - Stack Overflow](http://stackoverflow.com/questions/3477300/is-there-a-lib-to-generate-data-according-to-a-regexp-python-or-other)


apt-get install python-pyparsing
or apt-get install python3-pyparsing for python 3
And then, as you did it...

Ruby

[benburkert/randexp · GitHub](https://github.com/benburkert/randexp)
[Randexp - Generating test data with Ruby regexs - Dean Wilson@UnixDaemon: In search of (a) life](http://www.unixdaemon.net/ruby/generating-test-data-with-ruby-regexs.html)

[Ruby Quiz - Reverse the Polarity (#143)](http://www.rubyquiz.com/quiz143.html)

Perl

Not complete: http://search.cpan.org/~bowmanbs/Regexp-Genex-0.07/lib/Regexp/Genex.pm :: Regexp::Genex - search.cpan.org

Communication between Ruby and Python:

gem install rubypython (older unmaintained)
gem install rubypython-raspi (maybe for raspberry)
gem install rupy (the same author as raspi)

[steeve/rupy · GitHub](https://github.com/steeve/rupy)
date 01. Jan 0001 | modified 28. May 2021
filename: Regex Inverter
Article Content