re_loop

Function re_loop 

Source
pub fn re_loop(r: RegLan, i: u32, j: u32) -> RegLan
Expand description

Loop

ยงExample

use aws_smt_strings::smt_regular_expressions::*;

let digit = re_range(&"0".into(), &"9".into());
let two_to_five_digits = re_loop(digit, 2, 5);
assert!(str_in_re(&"98".into(), two_to_five_digits));
assert!(str_in_re(&"98765".into(), two_to_five_digits));