课程: Ubuntu Linux: Essential Commands

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Explore regular expressions

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…

内容