September 2026
1051 pages
35h 4m
English
It’s a common problem, especially on the web, to validate entered form data and to filter out the important information from the input. Of course, this is also possible with normal string operations, but this problem can be solved elegantly and with relatively little code using regular expressions.
Our sample program is supposed to read all relevant information from a kind of electronic business card and prepare it in a machine-readable form. The business card is saved in a text file in the following format:
Name: John DoeAddr: Samplestreet 123 12345 SampletownP: +1 781 228 5070
The program should now read this text file, extract the information it contains, and prepare it to form a dictionary ...
Read now
Unlock full access