raj-kiran-p / regex_engine Goto Github PK
View Code? Open in Web Editor NEWGenerate Regex Using Python That Can Fit Your Needs
License: MIT License
Generate Regex Using Python That Can Fit Your Needs
License: MIT License
Regex for the range (-1,-1) should be ^(-1)$
but the numerical_range function gives the output ^(1)$
.
Following is the commands execution sequence on my bash shell.
As per docs regex-engine
requires python 3.6 or newer.
$ python --version
Python 3.8.10
$ pip install regex-engine
Defaulting to user installation because normal site-packages is not writeable
Collecting regex-engine
Downloading regex_engine-1.1.0-py3-none-any.whl (7.0 kB)
Installing collected packages: regex-engine
Successfully installed regex-engine-1.1.0
WARNING: There was an error checking the latest version of pip.
$ pip install regex-engine
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: regex-engine in ./.local/lib/python3.8/site-packages (1.1.0)
WARNING: There was an error checking the latest version of pip.
$ python -m pip install --upgrade pip
Requirement already satisfied: pip in ./venv/amds/lib/python3.8/site-packages (22.1.2)
$ python
Python 3.8.10 (default, Mar 15 2022, 12:22:08)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from regex_engine import generator
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'regex_engine'
sample code:
from regex_engine import generator
generator = generator()
regex = generator.numerical_range(-1.0, 3.94)
Error message:
Traceback (most recent call last):
File "sample.py", line 5, in <module>
regex = generator.numerical_range(-1.0, 3.94)
File "C:\Users\user\Desktop\regex_engine\regex_engine\regex_generator.py", line 184, in numerical_range
if max_num_decimal > 1
IndexError: list index out of range
The bot created this issue to inform you that pyup.io has been set up on this repo.
Once you have closed it, the bot will open pull requests for updates as soon as they are available.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.