© J.J. Merelo 2020
J. MereloRaku Recipeshttps://doi.org/10.1007/978-1-4842-6258-0_10

10. Text Processing

J. J. Merelo1 
(1)
Granada, Granada, Spain
 

Scripting languages are great for whipping up scripts that work with text, extract information, render it in some format, or manipulate it in other useful ways. In this chapter, we see how to extract information, identify differences between files, and render static pages to HTML. We will see many basic Raku techniques, as well as be introduced to useful modules in the ecosystem.

Recipe 10-1. Scrape Markdown Documents

Problem

You need to extract information from a markdown document, extracting only the headers, for instance, or certain information you can identify by position or content.

Solution

Regular

Get Raku Recipes: A Problem-Solution Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.