ESRE - Easy Regex

rust // Make regex for '[a-z]+' let word = Re::ranges('a'..='z').into_one_or_more(); // Make regex for url format let re = Re::create("http") .opt("s") .join("://") .join(word.clone()) .one_or_more(Re::create(".").join(word)) .opt("/") .compile(); // Check matches let opt_val = re.match_begin("https://x.com.ru");

Features

Available constructuions

Usage order

1) build re with code using Re::* methods OR parse as json. 2) call .compile() to make re ready to use. 3) use re with methods .matchbegin(...) .find(...) .findall(...) .replace(...)