pub fn search<'a>(query: &str, content: &'a str) -> Vec<&'a str>
Expand description
This will search a query from the contents
Example
use variables::utils::search;
let result = search("hello", "hey everyone\nhello world");
assert_eq!(result[0], "hello world");