O'Reilly logo

Windows PowerShell in Action by Bruce Payette

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 10. Processing text, files, and XML

10.1

Processing unstructured text

298

10.2

File processing

305

10.3

XML processing

322

10.4

Summary

342

 

Where is human nature so weak as in the bookstore?

 
 --Henry Ward Beecher
 

Outside of a dog, a book is man’s best friend. Inside of a dog, it’s too dark to read.

 
 --Groucho Marx

One of the most common applications for scripting languages is processing text and text files. In this chapter, we’re going to cover PowerShell’s features for this kind of processing. We’ll revisit regular expressions and take another look at the language features and cmdlets that are provided for dealing with text. This chapter also covers the features that PowerShell offers for dealing with a special kind of text—XML—as strings and in ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required