pub fn get_all_between_strict<'a>(
text: &'a str,
begin: &str,
end: &str,
) -> Option<&'a str>
Expand description
Return the part of a str which is between two str or return None if this is not possible.
use string_tools::get_all_between_strict;
assert_eq!(get_all_between_strict("azertyuiopqsdfghjklmwxcvbn", "tyu", "klm"), Some("iopqsdfghj"));
assert_eq!(get_all_between_strict("azertyuiopqsdfghjklmwxcvbn", "klm", "tyu"), None);