Subscribe
Tutorial search

Charming Python: Text processing in Python for beginners - Python tutorial


Along with several other popular scripting languages, Python is an excellent tool for scanning and manipulating textual data. This article summarizes Python's text processing facilities for the programmer new to Python. The article explains some general concepts of regular expressions and offers advice on when to use (or not use) regular expressions while processing text.
Category: Python > Basics - Difficulty:


More cool Python tutorials:



Programming the OLPC Laptop using Python
Programming the OLPC Laptop using Python
The XO laptop intended (of the One-Laptop-Per-Child initiative) uses GNU/Linux as the underlying operating system, and includes an application environment written in Python with a human interface called Sugar. Explore the Sugar APIs and learn how to develop and debug a graphical activity in Sugar using Python.
Difficulty:
Introduces the Python xml_pickle object
Introduces the Python xml_pickle object
As part of the ongoing quest to create a more seamless integration between XML and Python, this article presents the xml_pickle module. The author discusses the design goals and decisions that went into xml_pickle and provides a list of likely uses.
Difficulty:
Dictionaries Part 1
Dictionaries Part 1
A dictionary is a type of list with two parts: keys and values. The keys are used to find values. Keys and values are analogous in a dictionary to words and definitions, or in a phonebook to names and numbers.
Difficulty:
Intro to PYX
Intro to PYX
XML is a fairly simple format. It uses plain Unicode text rather than binary encoding, and all the structures are declared with predictable-looking tags. Nonetheless, there are still enough rules in the XML grammar that a carefully debugged parser is needed to process XML documents -- and every parser imposes its own particular programming style. An alternative is to make XML even simpler. The open-source PYX format is a purely line-oriented format for representing XML documents that allows for much easier processing of XML document contents with common text tools like grep, sed, awk, wc, and the usual UNIX collection.
Difficulty:
WSGI Python Tutorial
WSGI Python Tutorial
WSGI is the standard specification for web programming in Python. This tutorial shows how it works with simple code samples.
Difficulty: