summaryrefslogtreecommitdiff
path: root/dev
diff options
context:
space:
mode:
authorGeoff Gole <geoffgole@gmail.com>2013-06-18 00:44:02 +0800
committerGeoff Gole <geoffgole@gmail.com>2013-06-18 00:44:02 +0800
commitc79f765df802e9d2c26c9ff80db72e772123ad0f (patch)
tree855152f07812dbf32167fb416a09cb30eda0491c /dev
parent56149ad7e56c6b9da02219f326e0ceb51447c7cb (diff)
Add some examples for s-match-strings-all
Diffstat (limited to 'dev')
-rw-r--r--dev/examples.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/dev/examples.el b/dev/examples.el
index 1aba70b..5213867 100644
--- a/dev/examples.el
+++ b/dev/examples.el
@@ -130,7 +130,9 @@
(defexamples s-match-strings-all
(s-match-strings-all
- "{\\([^}]+\\)}" "x is {x} and y is {y}") => '(("{x}" "x")("{y}" "y")))
+ "{\\([^}]+\\)}" "x is {x} and y is {y}") => '(("{x}" "x") ("{y}" "y"))
+ (s-match-strings-all "ab." "abXabY") => '(("abX") ("abY"))
+ (s-match-strings-all "\\<" "foo bar baz") => '(("") ("") ("")))
(defexamples s-slice-at
(s-slice-at "-" "abc") => '("abc")