Start up Regetron again and type this in:
Enter each of these lines as commands to regetron, and make sure you get them right.
Compare what you get for output with what I have below and make sure it's the same.
That file doesn't exist.
> !data "The lazy dog\nsleeps in the yard."
> .*lazy.*
0000: The lazy dog
> [A-Z][a-z]*
0000: The lazy dog
> [a-z]\.
0001: sleeps in the yard.
>
I've skipped showing you my entire shell session for starting Regetron here, and won't show it unless it matters to the exercise. Just assume that I started Regetron and entered this text in at the ``> `` prompts, then it printed the response under it.
What Regetron does is take what you type, convert it to a regular expression, and then runs that regular expression on each line. In the above we set the data to these two lines:
The lazy dog sleeps in the yard.
If a regular expression matches a line, then it gets printed. In the above you can see the first line gets matched twice, and the second only by the last regular expression.