pub fn non_empty(left: &str, right: &str) -> Result<bool, IntersectError>
Check if left and right contains a non empty intersection.
left
right
use regex_intersect::non_empty; assert!(non_empty("a.*", "ab.*cd").expect("regex expressions should parse"))
Returns an error if cannot parse one of the expressions