Skip to main content

An implementation of the GNU interface to regex in Python

Reason this release was yanked:

bdist platform tag is incorrect

Project description

Pygnuregex, GNU regex for Python

Pygnuregex is a Python package for the GNU interface of regex functions in <regex.h>. The GNU interface provides a wide range of different syntaxes for the regex compiler. This package requires GNU libc to work properly; prefer the sdist if you're worried about ABI compatibility.

Example

import pygnuregex
p = pygnuregex.compile(b"f\\(oo\\)[0-9]+")
result = p.search(b"hello foo123!") # ==> 6
p.span() # ==> [(6, 12), (7, 9)]

The SyntaxFlag enum contains all the available syntax options that may be set in pygnuregex.compile().

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

pygnuregex-1.0.0.tar.gz (18.3 kB view details)

Uploaded Source

Built Distribution

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

pygnuregex-1.0.0-py3-none-any.whl (20.9 kB view details)

Uploaded Python 3

File details

Details for the file pygnuregex-1.0.0.tar.gz.

File metadata

  • Download URL: pygnuregex-1.0.0.tar.gz
  • Upload date:
  • Size: 18.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for pygnuregex-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9575492779a867eb5872c6f967e044bad7f4a8d09d9a6c102428353f5fd0eda6
MD5 672f6ad98132fb977d6a77c4e992baf1
BLAKE2b-256 c7845c2da48aec17c084cd886997587f97f4c3f1e6782ed2c92ee512928d5ddf

See more details on using hashes here.

File details

Details for the file pygnuregex-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pygnuregex-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 20.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for pygnuregex-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0992d4cf845868f7571fa6c145fb172c296b194029134ff59cdc3abc2d5581f4
MD5 5d005fe60b6d503b3454520bd4bdc4c9
BLAKE2b-256 d11d18e30d504d7e9a90a08f63c9f4ef6b62d1be30711a183a4362edcfa3d96b

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