🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

regex-rs

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

regex-rs

Python bindings for the Rust regex crate.

0.2.4
PyPI
Maintainers
1

regex-rs

Python bindings for the rust regex crate

Usage

from regex_rs import Regex

re = Regex(r"\d+")
for number_match in re.find_iter("1 2 34 123"):
    # number_match: regex_rs.Match
    print(number_match)
# 1
# 2
# 34
# 123

Available methods

  • Regex.find
  • Regex.find_iter
  • Regex.captures
  • Regex.captures_iter
  • Regex.split
  • Regex.replace

Note

These bindings are missing a significant portion of the rust regex crate. If you see a struct or method that you would like added, feel free to open an issue for it.

Keywords

rust

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts