regex-intersect

Crates.ioregex-intersect
lib.rsregex-intersect
version1.2.0
sourcesrc
created_at2022-08-16 18:53:54.431405
updated_at2022-08-19 11:40:48.005595
descriptionFind out if two regexes have a non-empty intersection
homepage
repositoryhttps://github.com/jondot/regex-intersect
max_upload_size
id646877
size26,590
Dotan J. Nahum (jondot)

documentation

https://docs.rs/regex-intersect/

README

Regex Intersect

github crates.io docs.rs build status

This is a Rust library that finds out if two regexes have a non-empty intersection.

Dependency

[dependencies]
regex-intersect = "1.2.0"

For most recent version see crates.io

Usage

Import and use non_empty:

use regex_intersect::non_empty;
assert!(non_empty("a.*", "ab.*cd").expect("regex expressions should parse"))

Copyright

Copyright (c) 2022 @jondot. See LICENSE for further details.

Commit count: 6

cargo fmt