From the course: Ubuntu Linux: Essential Commands

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Explore regular expressions

Explore regular expressions

From the course: Ubuntu Linux: Essential Commands

Start my 1-month free trial

Explore regular expressions

- [Narrator] Regular expressions are a way of describing text and they're used very widely by programmers and system administrators. Regular expressions let you specify a pattern to look for in text, rather than searching for an explicit string of specific characters. So they're very helpful if you ever need to help answer a question, where you know what the answer looks like but not what it specifically is. Say you wanted to find all the email addresses or phone numbers in a text file. You can write a regular expression that looks for anything formatted like one. Regular expressions are essentially a whole programming language of their own, so in this video, I'll just go over the basics, but be sure to check out our regular expressions course for a more detailed look. Common operators that we'll see in regular expressions are dot, star or asterisk, and square and curly brackets. Dot represents any character. Star or asterisk matches one or more of a given character. Square brackets…

Contents