You've learned the basics of writing Regular Expressions in Ruby. In this lesson we'll learn how to use regular expressions with the match and scan ruby methods. We'll also learn to use capture groups ...
The grep command supports perl-flavored regular expression pattern matching. Rather than grepping for specific words, you can use regex with grep to find patterns throughout a text or command output.
With -w, grep will match “error” but skip things like “errors” or “terror.” The difference can be subtle, but when you’re ...