Where GREP Came From - Computerphile?

GREP is like a super-powered detective that helps you find specific words or phrases inside a big pile of text, just like looking for your favorite toy in a messy room.

Long ago, computers didn't have fancy tools to search through text. People had to read everything carefully, which was slow and tiring. But then came GREP, short for Generalized Regular Expression Parser, and it changed the game.

How GREP Works

Imagine you're searching for your favorite book in a library. Instead of checking every shelf one by one, you could ask the librarian: "Find me all books with 'dragon' in the title." That’s what GREP does, but for computers!

GREP looks through lines of text and finds matches based on patterns, kind of like how you might recognize your friend's name even if it's spelled a little differently.

Why It Matters

GREP became really popular because it helped programmers and users find exactly what they needed in huge files. It’s been around since the 1970s, and people still use it today, just like how your favorite toy has lasted through many playtimes!

Take the quiz →

Examples

  1. A student uses GREP to find all mentions of 'apple' in a document.
  2. GREP helps a programmer quickly locate errors in their code.
  3. Someone wants to search for a specific word in multiple files at once.

Ask a question

See also

Discussion

Recent activity