summaryrefslogtreecommitdiff
path: root/string.rb
diff options
context:
space:
mode:
authorBurdette Lamar <[email protected]>2023-06-20 08:28:21 -0500
committer<[email protected]>2023-06-20 09:28:21 -0400
commit932dd9f10e684fa99b059054fbc934607d85b45a ()
treed6324bbcd2eeba6eb8a69af68235235551f9ca98 /string.rb
parent6be402e172a537000de58a28af389cb55dd62ec8 (diff)
[DOC] Regexp doc (#7923)
Notes: Merged-By: peterzhu2118 <[email protected]>
-rw-r--r--string.rb2
1 files changed, 1 insertions, 1 deletions
@@ -278,7 +278,7 @@
# If argument +capture+ is given and not <tt>0</tt>,
# it should be either an capture group index (integer)
# or a capture group name (string or symbol);
-# the slice is the specified capture (see Regexp@Capturing):
#
# s = 'hello there'
# s[/[aeiou](.)\1/, 1] # => "l"