RegexSolver
This repository contains the code of RegexSolver engine.
For more information, you can check the library's documentation.
If you want to use this library with other programming languages, we provide a wide range of wrappers:
For more information about how to use the wrappers, you can refer to our getting started guide.
Installation
Add the following line in your Cargo.toml
:
[]
= "0.3"
Examples
Union
use Term;
let term1 = from_regex.unwrap;
let term2 = from_regex.unwrap;
let term3 = from_regex.unwrap;
let union = term1.union.unwrap;
if let RegularExpression = union
Intersection
use Term;
let term1 = from_regex.unwrap;
let term2 = from_regex.unwrap;
let term3 = from_regex.unwrap;
let intersection = term1.intersection.unwrap;
if let RegularExpression = intersection
Difference/Subtraction
use Term;
let term1 = from_regex.unwrap;
let term2 = from_regex.unwrap;
let subtraction = term1.subtraction.unwrap;
if let RegularExpression = subtraction