Crates.io | regex-intersect |
lib.rs | regex-intersect |
version | 1.2.0 |
source | src |
created_at | 2022-08-16 18:53:54.431405 |
updated_at | 2022-08-19 11:40:48.005595 |
description | Find out if two regexes have a non-empty intersection |
homepage | |
repository | https://github.com/jondot/regex-intersect |
max_upload_size | |
id | 646877 |
size | 26,590 |
This is a Rust library that finds out if two regexes have a non-empty intersection.
[dependencies]
regex-intersect = "1.2.0"
For most recent version see crates.io
Import and use non_empty
:
use regex_intersect::non_empty;
assert!(non_empty("a.*", "ab.*cd").expect("regex expressions should parse"))
Copyright (c) 2022 @jondot. See LICENSE for further details.