Practical SQL
PracticalSQL by Anthony DeBarros is available from No Starch Press.
Chapter 13: Mining Text to Find Meaningful Data
Covers how to use PostgreSQL’s full text search engine and regular expressions to extract data from unstructured text, using a collection of speeches by U.S. presidents as an example.