irongit

A rust macro that allows regular expression creation through independent files. Allows fully typed named groups.

updated readme

huncholanehuncholaneauthored
parent 5b2c230commit 904972cd1fca4221fe5ab20234c839ca84a64623Browse files

1 file changed, +12 -0

+12-0README.md
@@ -35,6 +35,18 @@ The abstract structure for matches within the regex_macro library contains `star
3535
3636 ## The events example
3737
38+### event.rs
39+
40+```rust
41+use regex_macro::load_regex_files;
42+
43+fn main() {
44+ load_regex_files!("tests/regex");
45+ let events = Event::vec_from_file("tests/samples/events.txt").unwrap();
46+ println!("{}", serde_json::to_string_pretty(&events).unwrap());
47+}
48+```
49+
3850 ### events.txt
3951
4052 ```text