33 Commits

Author SHA1 Message Date
Burdette Lamar
932dd9f10e
[DOC] Regexp doc (#7923) 2023-06-20 09:28:21 -04:00
Nobuyoshi Nakada
18b27185c3
[DOC] regexp absent operator 2023-05-04 12:32:43 +09:00
Kazuhiro NISHIYAMA
391d431073
[DOC] Fix markup [ci skip] 2023-01-13 09:46:15 +09:00
Nobuyoshi Nakada
a468213917 [DOC] Mention the conditional regexp 2023-01-11 23:25:28 +09:00
Sampat Badhe
d9cf038859
Update Regexp.timeout doc (#6658)
* Correct Regexp.timeout doc, Timeout.timeout= => Regexp.timeout=

* add link Regexp Timeout section
2022-11-02 14:05:54 +09:00
sampatbadhe
1fe2e34613 Fix a typo Denail-of-Service => Denial-of-Service [ci skip] 2022-10-08 12:36:05 +09:00
Nobuyoshi Nakada
a8a7c9d05d
[DOC] [Bug #17120] Fix match-reset \K 2022-09-05 19:36:21 +09:00
Nobuyoshi Nakada
4a6facc2d6 [Feature #18788] [DOC] String options to Regexp.new
Co-Authored-By: Janosch Müller <janosch.mueller@betterplace.org>
2022-06-20 19:35:12 +09:00
Burdette Lamar
2b4b513ef0
[DOC] Enhanced RDoc for Regexp (#5812)
Treats:

    #fixed_encoding?
    #hash
    #==
    #=~
    #match
    #match?

Also, in regexp.rdoc:

    Changes heading from 'Special Global Variables' to 'Regexp Global Variables'.
    Add tiny section 'Regexp Interpolation'.
2022-04-16 15:20:03 -05:00
Burdette Lamar
e021754db0
[DOC] Enhanced RDoc for Regexp (#5807)
Treats:

    #source
    #inspect
    #to_s
    #casefold?
    #options
    #names
    #named_captures
2022-04-15 13:31:15 -05:00
Yusuke Endoh
34b288f8d4 doc/regexp.rdoc: Add explanation about Regexp timeout configuration 2022-03-30 16:50:46 +09:00
Max Leopold
203b1fc7e2 Add documentation for regexp emoji named character property 2022-02-04 08:26:49 +09:00
Jeremy Evans
4fc9ddd7b6 Update Capturing and Anchors sections of regexp documention
Document that only first 9 numbered capture groups can use the \n
backreference syntax.  Document \0 backreference.  Document \K anchor.

Fixes [Bug #14500]
2021-07-27 12:30:43 -07:00
Ulysses Zhan
e4b68ab700
[DOC] Fixed the description of regexp alternations [ci skip] 2021-07-22 14:10:57 +09:00
Nobuyoshi Nakada
f3f78f9654
[DOC] Improved regexp.rdoc [ci skip]
* Sub-sectioned "Repetition" section
* Added examples of "Possessive match"
2021-02-11 22:20:41 +09:00
Marcus Stollsteimer
3679023df8 [DOC] Fix typo and language 2019-12-24 16:57:30 +01:00
Nobuyoshi Nakada
7b2cd548aa
[DOC] mentioned \R [ci skip] 2019-11-03 23:18:01 +09:00
Nobuyoshi Nakada
f8b3d7d159
[DOC] \s in regexp is not same as in string [ci skip] 2019-11-03 22:53:17 +09:00
Jeremy Evans
cd0e208963 Document {n}? regexp pattern is optional and not non-greedy [ci skip]
While not consistent with {n,}?, {,m}?, and {n,m}?, it is arguably
more useful, as otherwise the ? would have no effect.

Fixes [Bug #15583]
2019-08-28 11:50:33 -07:00
Jeremy Evans
bd32833382 Document behavior when mixing named captures with parentheses [ci skip]
Fixes [Bug #13716]
2019-07-26 14:26:59 -07:00
aycabta
fdbc8eed42 Improve doc of Regexp about "ignore case" behavior [Misc #10836]
* doc/regexp.rdoc: RDoc for "ignore case" behavior

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-21 06:42:53 +00:00
sonots
71b932d675 * doc/regexp.rdoc: In regexp doc, two backslashes match one literally
In the "Metacharacters and Escapes" section of regexp.rdoc, it said that
to match a backslash literally, it must be backslash-escaped, but the
rendered HTML showed three backslashes (\\\). There should only be two
backslashes (\\).

patched by jlmuir (J. Lewis Muir) [fix GH-1677]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-10-21 23:38:17 +00:00
sonots
ba9e870709 * doc/regexp.rdoc: Fix regexp doc syntax highlighting
patched by jlmuir (J. Lewis Muir) [fix GH-1678]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-10-21 23:36:53 +00:00
nobu
bcdfef89ae regexp.rdoc: terminators in comments [ci skip]
* doc/regexp.rdoc (comments): [DOC] terminators cannot appear in
  comments.  [ruby-core:74838] [Bug #12256]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-04-07 10:04:05 +00:00
knu
066b825400 * doc/regexp.rdoc: [DOC] Elaborate on the \G anchor. [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-01-08 13:34:52 +00:00
hsbt
d03c86391b * doc/regexp.rdoc: fix regexp docs for whitespace character.
[ruby-dev:48765] [Bug #10624]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-01 12:41:54 +00:00
zzak
71c4c0b9e7 * doc/regexp.rdoc: [DOC] Clarify whitespace matching by @allolex
[Fixes GH-606] https://github.com/ruby/ruby/pull/606 [ci skip]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-25 01:36:05 +00:00
nobu
37ce765ba3 fix typo [Fix GH-603]
* bootstraptest/test_literal.rb: fix typo of "dynamic".  [ci skip]
* regexp.rdoc: fix typo of "organized".  [ci skip]
* lib/session.rb: fix typo of "recognized".  [ci skip]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-28 15:20:28 +00:00
zzak
7b6deb9c4b * doc/regexp.rdoc: [DOC] Fix typo in Special global variables section.
Reported by Alex Johnson on ruby-doc.org


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-13 01:56:27 +00:00
zzak
d265baf31f * doc/regexp.rdoc: [DOC] add note about Bug #4044 as suggested by
duerst-san in [ruby-core:43612] [Fixes GH-443] Patched by @rosenfeld
  https://github.com/ruby/ruby/pull/443


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-13 00:05:38 +00:00
drbrain
4afabb5a88 * doc/regexp.rdoc: [DOC] Replace paragraphs in verbatim sections with
plain paragraphs to improve readability as ri and HTML.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-09-17 03:56:32 +00:00
zzak
368cecc151 * doc/regexp.rdoc: [DOC] Fix typo in example [Fixes GH-365]
Patch by Juanito Fatas https://github.com/ruby/ruby/pull/365


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-20 13:34:34 +00:00
zzak
df4abd9b3b * doc/re.rdoc: Rename to doc/regexp.rdoc
* re.c: Update rdoc include for rename of file


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-11 03:50:33 +00:00