string_patterns/
lib.rs

1extern crate regex;
2
3mod utils;
4pub mod enums;
5pub mod pattern_match;
6pub mod pattern_replace;
7pub mod pattern_filter;
8pub mod pattern_many;
9pub mod pattern_split;
10pub mod pattern_capture;
11pub mod words;
12
13/// This library provides a set of traits and extension methods for &str and/or String
14/// to facilitate common string manipulation routines that may require multiple steps
15/// with the Rust standard library + Regex.
16/// Once installed you need not explicitly add regex::* to your project and
17/// string types will have many new match, replace, split and extract methods.
18/// Most methods imvoling regular expressions have variants ending in result returning the reuslt
19/// type with an error from the Regex crate and without, that return false and skips replacements
20/// if the regular is invalid. Use the main methods if you have tested your regular expression.
21/// There are also variants with a case_insensitive flag and without (_ci and _cs).
22/// When used on arrays or vectors of strings each regular expression will only be compiled and checked once, when you need 
23/// to search within a large set of text records. 
24/// Always consider the simplest strategy for filtering text before resorting to regular expressions
25
26pub use crate::enums::*;
27pub use crate::pattern_match::*;
28pub use crate::pattern_replace::*;
29pub use crate::pattern_filter::*;
30pub use crate::pattern_many::*;
31pub use crate::pattern_split::*;
32pub use crate::pattern_capture::*;
33pub use crate::words::*;
34pub use crate::utils::build_regex;
35pub use regex::{Error, Regex, Captures, Match};