Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

circuitsacul/regex-rs

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Python bindings for the rust regex crate

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.