Skip to content
HomeVideosBooks
AllTopicsTrends
BlogsPodcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    Cover of Mastering Regular Expressions

    Mastering Regular Expressions

    Jeffrey E. F. Friedl · 1997

    Regular expressions are an extremely powerful tool for manipulating text and data. They are now standard features in a wide range of languages and popular tools, including Perl, Python, Ruby, Java, VB.NET and C# (and any language using the.NET Framework), PHP, and MySQL. If you don't use regular expressions yet, you will discover in this book a whole new world of mastery over your data. If you already use them, you'll appreciate this book's unprecedented detail and breadth of coverage. If you think you know all you need to know about regular expressions, this book is a stunning eye-opener. As this book shows, a command of regular expressions is an invaluable skill. Regular expressions allow you to code complex and subtle text processing that you never imagined could be automated. Regular expressions can save you time and aggravation. They can be used to craft elegant solutions to a wide range of problems. Once you've mastered regular expressions, they'll become an invaluable part of your toolkit. You will wonder how you ever got by without them. Yet despite their wide availability, flexibility, and unparalleled power, regular expressions are frequently underutilized. Yet what is power in the hands of an expert can be fraught with peril for the unwary. Mastering Regular Expressions will help you navigate the minefield to becoming an expert and help you optimize your use of regular expressions.

    ProgrammingComputer Science
    Open LibraryAmazon
    Stats for nerds
    58recommend
    115mentions
    84people
    2008–2025years
    73% recommend25% neutral2% critical

    Mentions per year

    2008201020122014201620182020202220242025

    What Hacker News says

    1. jjiceSep 2025
      Some of my favorites that have stayed at least pretty relevant. Disclosure: not an old timer.

      - UNIX and Linux System Administration Handbook. Get the most recently volume. It's a tomb (~1200 for the most recent).

      - If you do any SQL, SQY Performance Explained is an 80/20 read for DB indexes, query optimization, and troubleshooting

      - A Philosophy of Software Design (more recent). Just a great book on good design considerations to keep in mind.

      - Mastering Regular Expressions. The first half of the book will make you confident. The second half will show you how they're implemented. Regular expressions aren't something to be afraid of!

      - Designing Data Intensive Applications (more recent). Great book about data infra design decisions. Maybe not the scope you're looking for though.

      - Design Patterns (Gang of Four). Absolute classic. Hard to read all the way through though, more of a reference read. You'll recognize a lot of the patterns. You'll find some great to see a formal definition of, and you'll see some you never want to use.

      - Clean Architecture - Uncle Bob's best book IMO. I really don't like Clean Code, but this book talks a lot about interfaces and the right level of separation in your systems.

      - K&R, as you mentioned, is of course a classic

      - The AWK Programming Language is a nice quick read with similar quality and structure to K&R.

      - Beej's Guide to Network Programming. The best overview of network programming, including the C API. Plus this book is genuinely funny. Beej has a ton of great stuff, all on their website for free, or in print.

      - The Rust Programming Language is very well written too. Also online for free or in print.

      thread
    2. hiAndrewQuinnFeb 2025
      Naming only ones I haven't seen mentioned in other comments:

      - Networking for Systems Administrators, by Michael W. Lucas. Its explicit goal is to teach you just enough about networking, from the electron up, that you can talk to an actual network engineer and not make a fool out of yourself. It's a phenomenally high-ROI read if networking isn't your strong suit.

      - The first 3 chapters of Mastering Regular Expressions. Regexes are up there with Vim keybindings in terms of sheer ubiquitous use no matter what stack you find yourself in. The rest of the book is excellent if you want to actually implement a regex engine.

      - The Art of Unix Programming. Less technical. Gives you an idea of why exactly 'nix machines are like that, especially older commands. The 18 rules of design are worth committing to memory.

      - The Linux Programming Interface. More technical. Pairs esp nicely with the above. Lots of practice C code one can run, plenty of short self-contained chapters.

      - Not a book, but an online paper: https://how.complexsystems.fail . I see echoes of this everywhere I work, and it often helps me understand what kinds of "bad" things are secretly highly evolved resiliency measures.

      - The Little Schemer. Just for the joy of solving problems.

      Most of the others I can think of are too specialized to be of worth to everyone, but for what it's worth, William S. Vincent's Django for Beginners, APIs, and Professionals are a lovely triptych for anyone wanting to get into backend web dev.

      thread
    3. gregjorNov 2024
      I suggest the book Mastering Regular Expressions by Mark Friedl, published by O'Reilly. PDF here:

      https://github.com/pengbo-learn/books/blob/master/Mastering%...

      Using regexes to parse structured data -- HTML, XML, JSON, CSV, etc. -- usually a bad idea. Use an XML or HTML parser, JSON decoder, CSV interpreter. Dealing with the quotes and escaped characters too fragile with regular expressions.

      thread
    4. grendeltAug 2024
      I read through Learning Perl and practiced different regex patterns with simple programs. Programming Perl dove deeper, as did the OReilly Mastering Regular Expressions book.

      That and practice. I frequently check them with online regex tools to make sure the regex does what I want before I implement them.

      thread
    5. riffraffAug 2024
      Mastering Regular Expressions by Jeffrey Friedl.

      It's been many years but I remember it as both thorough and easy to understand.

      thread
    6. murderfsAug 2024
      I read Mastering Regular Expressions by Jeffrey Friedl 20 years ago when I was in middle school, front to back, and it's probably been the best investment of reading time I've ever made.
      thread

    Related

    Cover of Introducing Regular Expressions
    2021–2023

    Introducing Regular Expressions

    Michael Fitzgerald
    0 recommend · 2
    Cover of Parsing Techniques A Practical Guide
    2009–2023

    Parsing Techniques A Practical Guide

    Ceriel Jacobs
    7 recommend · 15
    Cover of Programming Perl
    2007–2026

    Programming Perl

    Larry Wall
    90 recommend · 298
    Cover of Higher-Order Perl
    2007–2026

    Higher-Order Perl

    Mark Jason Dominus
    74 recommend · 122
    Cover of Regular Expressions Cookbook
    2011–2017

    Regular Expressions Cookbook

    Jan Goyvaerts
    1 recommend · 2
    Cover of Code Complete
    2007–2026

    Code Complete

    Steve McConnell
    393 recommend · 894
    Cover of Structure and Interpretation of Computer Programs
    2007–2026

    Structure and Interpretation of Computer Programs

    Harold Abelson
    347 recommend · 761
    Cover of A pattern language
    2007–2026

    A pattern language

    Christopher Alexander
    110 recommend · 368