initial commit

This commit is contained in:
2025-04-12 13:01:03 +02:00
parent b3af8f76d7
commit 32f3124374
7 changed files with 112 additions and 0 deletions

8
src/parser.rs Normal file
View File

@@ -0,0 +1,8 @@
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())
}