Skip to content

An I-Regexp checker for Rust, with Python bindings.

License

Notifications You must be signed in to change notification settings

jg-rp/rust-iregexp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust I-Regexp Checker

Check regular expressions for compliance with RFC 9485.

Table of Contents

Rust install

cargo add iregexp

Rust usage

use iregexp::check;

fn main() {
    println!("{:?}", check(r"[0-9]*?"));  // false
}

Python install

pip install iregexp_check

Python usage

from iregexp_check import check

print(check(r"[ab]{3}"))  # True
print(check(r"[0-9]*?"))  # False

Contributing

See CONTRIBUTING.md

License

MIT license.