Now showing

Primer on regular expressions inside of Emacs

Documentaries & Learning2020Creative Commons
Poster for Primer on regular expressions inside of Emacs

About this film

In this video tutorial I show how to use regular expression syntax to solve various practical problems in Emacs. Knowledge of regexp notation is not a prerequisite to using Emacs effectively. In fact, you can be very productive without knowing anything about regular expressions. However, knowing those things will certainly boost your productivity and make Emacs an even more powerful tool at your hands. See my dotemacs for the documentation and package declarations I provide. This is the full text of my presentation, which was done using org-mode (check my dotemacs for presentations with Org). * Emacs regular expressions in practice Emacs has a few ways to operate on regexp matches, such as: + =isearch= + =query-replace= + =keep-lines= + =flush-lines= To make our life easier, we can practice with the built-in =regexp-builder= or the third-party package =visual-regexp=. This demo will rely on the latter. If you have the manual you can run =C-h r i regexp= to get to the relevant chapter. *Do it!* ** Line boundaries The caret =^= denotes the beginning of the line. The dollar sign =$= marks the end. Match all lines that start with a space: Emacs Emacs Emacs Emacs Emacs And all that end…

Directors & creators

Protesilaos Stavrou

View on archive.org ↗

More from this pool

Documentaries & Learning

See all →