Sams Teach Yourself Emacs in 24 Hours

ContentsIndex

Hour 9: Regular Expressions

Previous HourNext Hour

Sections in this Hour:

 

Exercises

1. Develop a regular expression that matches lines more than 70 characters long.

2. Develop a regular expression to search for headers in HTML and LaTeX. (In HTML header lines start with <h1>, <h2>, ... <h6>. In LaTeX the following headers exist: \chapter, \section, \subsection, \subsubsection, and so on).

3. Show how to do search-and-replace from <name> := < value> to set(<name>,<value>). where <name> can be any valid name in Pascal as described earlier in this hour, and <value> is any text on the rest of the line.

Sams Teach Yourself Emacs in 24 Hours

ContentsIndex

Hour 9: Regular Expressions

Previous HourNext Hour

Sections in this Hour: