Skip to main content

^regrex$

This tool is a string generator based on regex pattern inspired by pemistahl/grex.

Features

  • Generate strings based on regex pattern
  • Check if generated url are valid or not by accessing them in parallel
  • Match strings with regex pattern (WIP)

Getting Started

> pip install python-regrex

> regrex gen -p "\d{4}-([a-z]+){6}@([a-z]+)mail\.com" -c 3 -i 0 -s desc --disable-progress-bar

5864-znufkb@pmail.com
3322-sgfkkn@zmail.com
1751-wnnolm@umail.com
> regrex -h

usage: src/cli.py [{gen,check,match}] [-h] [-p PATTERN] [-c COUNT] [-l LIMIT] [-t TIMEOUT] [-i INTERVAL] [-s {natural,asc,desc,random}] [-d] [-o OUTPUT_PATH]

Generate URLs with specified regex pattern and check their validity.

positional arguments:
  {gen,check,match}     Mode: gen, check, or match (default: gen)

options:
  -h, --help            show this help message and exit
  -o OUTPUT_PATH, --output_path OUTPUT_PATH
                        Output path
  -p PATTERN, --pattern PATTERN
                        Regular expression pattern for generating random strings
  -c COUNT, --count COUNT
                        Max number of urls (default: 10)
  -l LIMIT, --limit LIMIT
                        Max string length range limit (default: 1) [WIP: only works in random]
  -t TIMEOUT, --timeout TIMEOUT
                        Timeout for HTTP requests (default: 5 seconds)
  -i INTERVAL, --interval INTERVAL
                        Interval between requests (default: 1 second)
  -s {natural,asc,desc,random} [{natural,asc,desc,random} ...], --sort {natural,asc,desc,random} [{natural,asc,desc,random} ...]
                        Sort: generate, asc, or desc (default: random)
  -d, --download        Enable downloading contents for valid URLs (default: False)
  --disable-progress-bar
                        Disable the progress bar.

Contribution

We welcome new contributors and look forward to growing this project together. Whether you'd like to request new content, promote it on social media, improve documentation, provide creative materials, sponsor the project, or make tip donations, contributions in any form are highly appreciated.

Metadata

Release files for python-regrex 0.1.18

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-regrex 0.1.18
File Size Uploaded
python_regrex-0.1.18.tar.gz 4.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-regrex 0.1.18
File Interpreter ABI Platform
python_regrex-0.1.18-py3-none-any.whl Python 3 none any Details

Total release size: 9.3 kB

Release files / python_regrex-0.1.18.tar.gz

Download URL python_regrex-0.1.18.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4cf66cefb39f6ff4667b4d7d1c60215ed9cf7b74e60b20a7f599df704b999c56
BLAKE2b-256 checksum
How to use checksums
488581e1b0f8ed6eb0bb0cf93d6e908282fc990ef6d95aa0b680806513c07013
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.13 Linux/5.15.133.1-microsoft-standard-WSL2

Release files / python_regrex-0.1.18-py3-none-any.whl

Download URL python_regrex-0.1.18-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e13c6c161241ada5751d52fd0124264944b0b84ce6f2f9f616c5c543a178a962
BLAKE2b-256 checksum
How to use checksums
4afc756c41aa64bfbdc978aa0f0dd6554a349627fcf4425e784a4f5637653335
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.13 Linux/5.15.133.1-microsoft-standard-WSL2

Release history Release notifications | RSS feed

This release

0.1.18 This release

2 release files

0.1.17

2 release files

0.1.16

2 release files

0.1.15

2 release files

0.1.14

2 release files

0.1.13

2 release files

0.1.12

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page