Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does regex [*\f]+ mean?

In the org-mode the outline-regexp variable is set to "[*\f]+".

I am not able to figure out what it stands for, referred this without success.

Edit:- [*\f]+ changed to "[*\f]+"

like image 922
Talespin_Kit Avatar asked Jun 18 '13 13:06

Talespin_Kit


2 Answers

\f stands for form feed, which is a special character used to instruct the printer to start a new page.

[*\f]+ Then means any sequence entirely composed of * and form feed, arbitrarily long.

like image 94
micantox Avatar answered Nov 02 '22 23:11

micantox


The default value matches asterisks and page breaks: "[*\f]+"

http://www.emacswiki.org/emacs/OutlineMode#toc2

like image 28
bob Avatar answered Nov 03 '22 00:11

bob