Skip to main content

Python library for converting glob formatted search to regex.

Project description

glob2regex

Converts glob search format to regex format

Python package

Install

pip install glob2regex

Example of usage

from glob2regex import glob2regex

glob_search = '/home/*/ST-*/q[01-10]*.pdf'

regex = glob2regex(glob_search)

print(regex)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

glob2regex-0.1.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

glob2regex-0.1.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file glob2regex-0.1.0.tar.gz.

File metadata

  • Download URL: glob2regex-0.1.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for glob2regex-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b18df1684e9d1df5fa48dafa2132979094336a740cb21231e772bf2148b7824f
MD5 253ea98a6bf9dd79e8489152a5d133b8
BLAKE2b-256 662c036bd9f9308b7a9267e3deca2080c8d06c8ab4c5f89da103dbac6913af9a

See more details on using hashes here.

File details

Details for the file glob2regex-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: glob2regex-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for glob2regex-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 be53a8ecf197d2620232bfa361a5b6854c77c518f13b4b0e0a8c025abc930928
MD5 f0c570d1437fbefb817fa5d17185f253
BLAKE2b-256 fe97bcfd7f15a5e0bfd3e21f0b0751960b5bad4b4a4307b444dd8d482a9ce60b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page