Skip to main content
格式化正则内容输出
===============

$0、$1、$2 分别对应 match中的g0、g1、g2、g3

multi是否为多重匹配,是则返回所有结果,否则返回首匹配



>>> data = '12m34kjdg8946o'
>>> pn = '(\d)([a-z])'
>>> fm = '$1,$2'
>>> result = extract(pn, data, fm)
>>> result
'2,m'
>>> result = extract(pn, data, fm, multi= True)
>>> result
['2,m', '4,k', '6,o']

Metadata

Release files for python-reformat 0.1

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-reformat 0.1
File Size Uploaded Provenance Actions
python-reformat-0.1.tar.gz 2.1 kB Without provenance Details for python-reformat-0.1.tar.gz

Release files / python-reformat-0.1.tar.gz

Download URL python-reformat-0.1.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6867d72369c32c7aa684ea05e7827d902c470116b4a5c214a94c606c39caba36
BLAKE2b-256 checksum
How to use checksums
84c61ed9b8fd29bb5889850fec73f8203677a32add2569b69fd5b442d618e95d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for python-reformat 0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file No provenance

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