Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • Socket score

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc