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.

Ace your Technical Interview

Programming Interviews: Exposed

Ace your Technical Interview Try Algorithms

In today's tight job market, competition for programming jobs is hotter than ever. This third edition of a popular guide to programming interviews includes new code examples, information on the latest languages, new chapters on sorting and design patterns, tips on using LinkedIn, and a downloadable app to help prepare applicants for the interview.

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

More Algorithms resources

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

Ad