in reply to Training non-programmers in Perl regexps
For that kind of student, I like to introduce them in three stages, leaving out fancy stuff like extended constructs.
The omission of alternation is intentional. Unsophisticated users overuse them and can easily land themselves in a computational tarpit.
The postgraduate course is to point out some of the other things possible and refer to perlretut and perlre.
The key is to show them new things that are useful to them right away. Don't demand big conceptual leaps without motivation, and allow them to practice before demanding another.
An editor which does incremental regex searches with highlighting is valuable for illustrating how regexen work, live. Emacs incremental search is documented in info emacs Incremental Search. Vim documents its version in the "pattern.txt" manual chapter.
After Compline,
Zaxo
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Training non-programmers in Perl regexps
by etm117 (Pilgrim) on Jul 09, 2005 at 11:57 UTC |