summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank LENORMAND <lenormf@gmail.com>2016-03-16 14:29:43 +0200
committerFrank LENORMAND <lenormf@gmail.com>2016-03-16 14:29:43 +0200
commit8ae7116237ef9cd8b92964a7c73bb8bfde35abdd (patch)
treebcae38461e303c8a391cf8e95cf7eb0f1633fd79
parent5fe2872904b78adf5cb252e8daac6d6eb901e966 (diff)
Document storing of submatches in a selection's regex
-rw-r--r--doc/manpages/registers.asciidoc12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/manpages/registers.asciidoc b/doc/manpages/registers.asciidoc
index 5afb7cd7..d3ef8085 100644
--- a/doc/manpages/registers.asciidoc
+++ b/doc/manpages/registers.asciidoc
@@ -55,3 +55,15 @@ contain some special data
*#*::
selection indices (first selection has 1, second has 2, ...)
+
+Integer registers
+-----------------
+Registers *1* to *9* hold the grouped sub-matches of the regular
+expression used to make the last selection. Example: applying the
+following regular expression to the date of the day would put the day of
+the week in register *1*, the month in register *2*, and the day of the
+month in register *3*, but select the entire date:
+
+--------------------
+(\w+) (\w+) (\d+) .+
+--------------------