1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//! This crate implements another way of writing regualar expressions as if they are pseudocodes,
//! they will be easier to understand and debug, especially the long ones.
//!
//! To start writing a regex using this crate, there are several ways (see [`head_or_tail`](head_or_tail)) of which
//! [`new`](struct.EasyRegex.html#method.new) and [`new_section`](struct.EasyRegex.html#method.new_section) are the common methods.
//! The [`new`](struct.EasyRegex.html#method.new) method takes an ```&str``` as input and makes a raw expression while
//! the [`new_section`](struct.EasyRegex.html#method.new_section)
//! method needs no input and basically creates an empty string to write the intented expressions by method chaining.
//! To take the prepared regex out of the chain, the last method will be [`get_regex`](struct.EasyRegex.html#method.get_regex)
//! which outputs a ```Result``` including a regex of type ```Regex``` or an ```Error```.
//! The [`get_regex`](struct.EasyRegex.html#method.get_regex) will in fact use
//! the [`RegexBuilder::new`](https://docs.rs/regex/latest/regex/struct.RegexSetBuilder.html#method.new)
//! and [`RegexBuilder::build`](https://docs.rs/regex/latest/regex/struct.RegexSetBuilder.html#method.build) methods of
//! the [regex](https://crates.io/crates/regex) crate.
use ;
extern crate lazy_static;
/// Main struct includes methods to be chained together in order to create a regular expression.
;
;