7 releases (4 stable)
| new 1.0.4 | Jan 3, 2026 |
|---|---|
| 1.0.3 | Dec 17, 2025 |
| 1.0.1 | Jan 29, 2025 |
| 0.1.2 | Jan 2, 2023 |
#1515 in Parser implementations
187 downloads per month
Used in 3 crates
7KB
140 lines
readformat
The inverse of format!(). The format argument is the format string, and the s argument is the string to match the format against.
Examples:
readf1("Hello, {}!", "Hello, world!")=>Some("world")readf("I hope {} are doing {}!", "I hope you are doing well!")=>Some(vec!["you", "well"])readf1("Goodbye, {}!", "Hello, world!")=>None