|
| |
< Back
In this example, we use patterns to search through the Robert Frost poem The Road Not Taken.
Here we search for a block of text that starts with the word "and" and ends with the word "one", and has one or more words in between. In this context, {etc} represents a pattern variable.

Here we search for the word "i" followed by either "could", "stood", or "should". (Note: Could, stood, and should are separated by a vertical bar - sometimes called the pipe character - which unfortunately looks like a capital i in some fonts, but is a separate key on the keyboard).

Extending the previous example, here we find the word "i", followed by "could", "stood", or "should", and then followed by one or more words, until it reaches a comma.

Here we find an entire line that contains the word "diverged" in it.

|
|