match_words/
match_words.rs

1use libgrep_rs::options::Options;
2use libgrep_rs::searcher::Searcher;
3
4fn main() {
5    
6    let options = Options::default();
7    let text = String::from("Steve Jobs unveiled the iProduct today");
8    
9    let searcher = Searcher::new(String::from("Jobs"), text, options, Some(String::from(" ")));
10    let return_text: String = searcher.search();
11    //should print: Jobs
12    print!("{}", return_text);
13}