vec-reg-common 0.7.1

Shared models and logics for the vec-reg
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use vec_reg_common::{CompiledRegex, Regex};

#[test]
fn begin_end() {
    let reg = Regex::concat(
        Regex::concat(
            Regex::group(Regex::repeat0(Regex::any(), false)),
            Regex::concat(Regex::begin(), Regex::end()),
        ),
        Regex::group(Regex::repeat0(Regex::any(), false)),
    )
    .compile();
    let captures = reg.captures(&[1]);
    assert!(captures.is_none());
}