branch: master commit 8c22dcb7aaba6e7ae6ecd030fa0ce23dd88323bc Author: Junpeng Qiu <qjpchm...@gmail.com> Commit: Junpeng Qiu <qjpchm...@gmail.com>
Add :group example --- README.org | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.org b/README.org index b439c25..faa1805 100644 --- a/README.org +++ b/README.org @@ -220,6 +220,13 @@ So we can Lisp functions that can operate on points/regions, such as =goto-char= and =kill-region=. + =:group= can be specified when using =parsec-re=: + #+BEGIN_SRC elisp + (parsec-with-input "ab" + (parsec-query (parsec-re "\\(a\\)\\(b\\)") :group 2)) + #+END_SRC + + The above code will return "b" instead of "ab". * Error Messages =parsec.el= implements a simple error handling mechanism. When an error