Skip to main content

Extensions for the `re` package.

Project description

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.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

re_extensions-0.0.8-py2.py3-none-any.whl (9.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file re_extensions-0.0.8-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for re_extensions-0.0.8-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2204a08f97d06a5d5f41e2ecdd6ff7bef482fbf799709fdddbf3e0fc9b087a00
MD5 2a0aee9bcc058cd825b05bb03dd9bfb7
BLAKE2b-256 26c6e6431daddca0f046aabedef680ccb15a2f139558959f30da5c911b7bdd65

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