
Build a Simple Log Analyzer with Python
Somewhere on a server, a program is keeping a diary. Every few seconds it writes a line about what just happened: a user logged in, a request completed, a…
Read tutorialManipulating or interpreting text through string operations, pattern matching, normalization, or extraction.
Tagged articles
7 articles in this tag.

Somewhere on a server, a program is keeping a diary. Every few seconds it writes a line about what just happened: a user logged in, a request completed, a…
Read tutorial
Every spreadsheet person knows the feeling. You export a CSV file, open it, and find blank rows scattered through the data. Names written three different…
Read tutorial
Counting words in Python sounds trivial until you try it on real text. The moment your sentence contains a comma, a capital letter, or an ellipsis, the…
Read tutorial
You have a block of messy text and you need every number, date, or email address hiding inside it. A plain string method can find "cat" in a sentence. It…
Read tutorial
You have a messy string. Maybe it has extra spaces at the edges, mixed capitalization, a word you need to swap out, or text you want to break into pieces.…
Read tutorial
You already know how to print a value. The harder part is making that output read like a sentence instead of a pile of labels. Python string formatting is…
Read tutorial
Every value in Python carries a type, and every type has rules about what you can do with it. Numbers compute. Strings reshape. The moment you learn to…
Read tutorial