Regexps are weird in Emacs because of the lisp
http://www.emacswiki.org/cgi-bin/wiki/CategoryRegexp
http://www.emacs.uniyar.ac.ru/doc/em24h/emacs075.htm - 24 hours, Regexp chapter
http://steve.yegge.googlepages.com/effective-emacs#item9
http://web.ics.purdue.edu/~yoder2/hints/installs/emacs-regexp.txt
http://www.emacswiki.org/cgi-bin/wiki/EmacsCrashRegexp
Why all the brackets and slashes, sometimes?
eg: "\\(\\[\\[#.*\\]\\]\\)\n!!!"
brackets [,] need escaping in a search regexp, but not in the replace regexp
Newline in Emacs regexp
- in minibuffer:
C-q C-j(see below) - in code:
\n
Differences between interactive and programmatic
The above escapes are different for programmatic use, versus interactive usage.
slash-marks need to be escaped, so everything gets WORSE
See Also
Programming.Regular Expression
Tags
Emacs regexps RegularExpressions
Comments
No comments yet.
Add Comment




