In the section about word boundaries, you said that "teddie" =~ /ed/; is false. Why dosen't it match? It looks like it should... | [reply] [d/l] |
Be carreful japhy, if you make mystake in tutorial... ;)
I found your project very good, because I love regexp and I want to play with it.
BoBiOne KenoBi ;)
| [reply] |
| [reply] |
The preface will explain how much Perl
the reader is expected to know, right?. Given the topic, I suggest
that you assume they haven't worked with Perl regular
expressions at all, in which case you should explain the
s and m operators before you use
them.
You don't have to spend a lot of time at it, but when I see
"Learning..." in the title of a book, I expect the basics
of the subject matter to be covered early, and re-emphasized
in new sections (or new contexts). In chapter 2
you could say,
Perl's m operator is used to match patterns
in a string, such as
m/Hello, world!/
The / marks delimit the pattern; any of Perl's quoting or
bracketting characters can be used as well, though the /
is the most traditional, and in fact the m operator
can be left out if you use them.
| [reply] [d/l] [select] |
| [reply] [d/l] |
I'd like to suggest that you include the backslash in your list of metacharacters at the begining of Chapter 2.
You discuss using the backslash to escape the special meaning of metacharacters but don't mention that you need to escape a backslash itself to match it.
Very good job so far! :-)
bbfu
Seasons don't fear The Reaper.
Nor do the wind, the sun, and the rain.
We can be like they are.
| [reply] |