mirror of
https://github.com/Djeeberjr/fw-anwesenheit.git
synced 2025-07-03 01:24:17 +00:00
9 lines
235 B
Rust
9 lines
235 B
Rust
use regex::Regex;
|
|
|
|
pub fn ParseLine(line: &str) -> Option<String> {
|
|
let regex = Regex::new(r"(?m)^\[\+\] UID.... (.*)$").unwrap();
|
|
let result = regex.captures(line);
|
|
|
|
result.map(|c| c.get(1).unwrap().as_str().to_owned())
|
|
}
|