Python has powerful regular expressions but they can be totally overkill for many simpler situations. Additionally, some common numerical formats require quite complex regex's to match them robustly.
This Python library provides a simple implementation of the scanf function found in C. It allows you to parse input strings according to a specified format string, similar to how scanf works in C. %f ...