pub fn extract_keyword(line: &str, rule: Rule) -> Option<String>
Expand description

If a given Rule exists in the input text, return that string trimmed. Otherwise, return None. This is typically used to find keywords.