Chapter 1. Text
LANGUAGE="3">IntroductionRecipe 1.1. Processing a String One Character at a TimeRecipe 1.2. Converting Between Characters and Numeric CodesRecipe 1.3. Testing Whether an Object Is String-likeRecipe 1.4. Aligning StringsRecipe 1.5. Trimming Space from the Ends of a StringRecipe 1.6. Combining StringsRecipe 1.7. Reversing a String by Words or CharactersRecipe 1.8. Checking Whether a String Contains a Set of CharactersRecipe 1.9. Simplifying Usage of Strings' translate MethodRecipe 1.10. Filtering a String for a Set of CharactersRecipe 1.11. Checking Whether a String Is Text or BinaryRecipe 1.12. Controlling CaseRecipe 1.13. Accessing SubstringsRecipe 1.14. Changing the Indentation of a Multiline StringRecipe 1.15. Expanding and Compressing TabsRecipe 1.16. Interpolating Variables in a StringRecipe 1.17. Interpolating Variables in a Stringin Python 2.4Recipe 1.18. Replacing Multiple Patterns in a Single PassRecipe 1.19. Checking a String for Any of Multiple EndingsRecipe 1.20. Handling International Text with UnicodeRecipe 1.21. Converting Between Unicode and Plain StringsRecipe 1.22. Printing Unicode Charactersto Standard OutputRecipe 1.23.
Encoding Unicode Data for XML and HTMLRecipe 1.24. Making Some Strings Case-InsensitiveRecipe 1.25. Converting HTML Documents to Texton a Unix Terminal