Skip to main content

re-extensions

Extensions for the re package.

Installation

$ pip install re-extensions

Requirements


See Also

Github repository

PyPI project

License

This project falls under the BSD 3-Clause License.

History

v0.0.8

  • Bugfix: Updated the required Python version to 3.12.7.

v0.0.7

  • Imported * from the re_extensions.smart namespace into the main re_extensions namespace.

v0.0.6

  • Removed smart.real_findall() - use smart.finditer() or smart.line_finditer() instead.

v0.0.5

  • New (advanced) regex operations smart.finditer() and smart.line_finditer().
  • Removed pattern_inreg() because it has the same functionality as re.escape() - use that instead.

v0.04

  • New string operation quote_collapse().
  • Renamed the namespace Smart as smart. Please run from re_extensions import smart to activate this namespace.
  • Bugfix for smart.rsplit();

v0.0.3

  • The basic structure of the package is completed, including:
    • advanced regex operations smart.search(), smart.match(), smart.fullmatch(), smart.sub(), smart.subn(), and smart.split();
    • new regex operations smart.rsplit(), smart.lsplit(), smart.line_findall(), and smart.real_findall();
    • string operations counted_strip(), line_count(), line_count_iter(), and word_wrap();
    • utility classes Smart, SmartPattern and SmartMatch;
    • and other utility functions: find_right_bracket(), find_left_bracket(), and pattern_inreg().

v0.0.2

  • Bugfix for setup.py.

v0.0.1

  • Initial release.

Metadata

Release files for re-extensions 0.0.8

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

Built distribution (wheel)

Table of built distributions (wheels) for re-extensions 0.0.8
File Interpreter ABI Platform
re_extensions-0.0.8-py2.py3-none-any.whl Python 2, Python 3 none any Details

Release files / re_extensions-0.0.8-py2.py3-none-any.whl

Download URL re_extensions-0.0.8-py2.py3-none-any.whl
Size 9.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
2204a08f97d06a5d5f41e2ecdd6ff7bef482fbf799709fdddbf3e0fc9b087a00
BLAKE2b-256 checksum
How to use checksums
26c6e6431daddca0f046aabedef680ccb15a2f139558959f30da5c911b7bdd65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.13

Release history Release notifications | RSS feed

This release

0.0.8 This release

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

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