01. Introduction to Regular Expressions

What is Regex?

Regular Expressions (regex) are symbolic notations that are used to identify patterns in text.

What can I do with Regex?

Regex is useful for identifying strings, patterns of characters, words of particular interest. After your set of strings are found, you can either print it out, replace it, or perform other manipulative tasks.

Why should I learn Regex?

Knowing how to write and use regex provide the tools to quickly identify, count and manipulate strings of interest. Furthermore, regex gives you the flexibility as a programmer to apply tasks such as "find and replace" in a matter of milliseconds that would otherwise takes minutes to perform manually.

Looking to learn regex for the shell?

If you're looking to learn regular expressions for the shell or the Linux command line, head on over to our Command Line Regular Expressions tutorial page.

Build modern and responsive webpages

HTML & CSS

Build modern and responsive webpages Try Front-end

This book teaches HTML as if it's for anyone - hobbyists, students, and professionals - and it's full-color throughout. It utilizes information graphics and lifestyle photography to explain the topics in a simple way that is engaging. You can progress through the chapters from beginning to end or just dip into topics of particular interest at your leisure.

$ Check price
29.9929.99Amazon 4.5 logo(926+ reviews)

More Front-end resources

Take your Linux skills to the next level!

The Linux Command Line

Take your Linux skills to the next level! Try Linux & UNIX

The Linux Command Line takes you from your very first terminal keystrokes to writing full programs in Bash, the most popular Linux shell. Along the way you'll learn the timeless skills handed down by generations of gray-bearded, mouse-shunning gurus: file navigation, environment configuration, command chaining, pattern matching with regular expressions, and more.

$ Check price
39.9539.95Amazon 4.5 logo(274+ reviews)

More Linux & UNIX resources

Ad