Text is everywhere. Web pages, databases, the contents of files--for almost any programming task you perform, you need to process text. Cut even the most complex text-based tasks down to size and learn how to master regular expressions, scrape information from Web pages, develop reusable utilities to process text in pipelines, and more.
Most information in the world is in text format, and programmers often find themselves needing to make sense of the data hiding within. It might be to convert it from one format to another, or to find out information about the text as a whole, or to extract information fromit. But how do you do this efficiently, avoiding labor-intensive, manual work?
Text Processing with Ruby takes a practical approach. You'll learn how to get text into your Ruby programs from the file system and from user input. You'll process delimited files such as CSVs, and write utilities that interact with other programs in text-processing pipelines. Decipher character encoding mysteries, and avoid the pain of jumbled characters and malformed output.
You'll learn to use regular expressions to match, extract, and replace patterns in text. You'll write a parser and learn how to process Web pages to pull out information from even the messiest of HTML.
Before long you'll be able to tackle even the most enormous and entangled text with ease, scything through gigabytes of data and effortlessly extracting the bits that matter.
What You Need:
This book requires a passing familiarity with the Ruby programming language, and assumes that you already have Ruby installed on your computer.
Text Processing with Ruby: Extract Value from the Data That Surrounds You
📄 Viewing lite version
Full site ›
Book Details
Author(s)Rob Miller
PublisherPragmatic Bookshelf
ISBN / ASIN1680500708
ISBN-139781680500707
AvailabilityUsually ships in 24 hours
Sales Rank1,361,243
MarketplaceUnited States 🇺🇸
Description ▲
Similar Products ▼
- Build Awesome Command-Line Applications in Ruby 2: Control Your Computer, Simplify Your Life
- Metaprogramming Ruby 2: Program Like the Ruby Pros (Facets of Ruby)
- The Well-Grounded Rubyist
- Programming Ruby 1.9 & 2.0: The Pragmatic Programmers' Guide (The Facets of Ruby)
- Mastering Ruby Closures: A Guide to Blocks, Procs, and Lambdas
- Effective Testing with RSpec 3: Build Ruby Apps with Confidence
- Learn Game Programming with Ruby: Bring Your Ideas to Life with Gosu
- Ruby Performance Optimization: Why Ruby is Slow, and How to Fix It
- Ruby Cookbook: Recipes for Object-Oriented Scripting
- Practical Vim: Edit Text at the Speed of Thought