Skip to content

Commit bc849a1

Browse files
[DOC] Fix links in Regexp (ruby#16018)
1 parent 48d2c7f commit bc849a1

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

doc/_regexp.rdoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ A regexp may be used:
2626
re.match('good') # => nil
2727

2828
See sections {Method match}[rdoc-ref:Regexp@Method+match]
29-
and {Operator =~}[rdoc-ref:Regexp@Operator+-3D~].
29+
and {Operator =~}[rdoc-ref:Regexp@Operator-].
3030

3131
- To determine whether a string matches a given pattern:
3232

3333
re.match?('food') # => true
3434
re.match?('good') # => false
3535

36-
See section {Method match?}[rdoc-ref:Regexp@Method+match-3F].
36+
See section {Method match?}[rdoc-ref:Regexp@Method+match].
3737

3838
- As an argument for calls to certain methods in other classes and modules;
3939
most such methods accept an argument that may be either a string
@@ -64,7 +64,7 @@ A regular expression may be created with:
6464
/foo/ # => /foo/
6565

6666
- A <tt>%r</tt> regexp literal
67-
(see {%r: Regexp Literals}[rdoc-ref:syntax/literals.rdoc@25r-3A+Regexp+Literals]):
67+
(see {%r: Regexp Literals}[rdoc-ref:syntax/literals.rdoc@r-regexp+literals]):
6868

6969
# Same delimiter character at beginning and end;
7070
# useful for avoiding escaping characters
@@ -113,7 +113,7 @@ none sets {global variables}[rdoc-ref:Regexp@Global+Variables]:
113113
Certain regexp-oriented methods assign values to global variables:
114114

115115
- <tt>#match</tt>: see {Method match}[rdoc-ref:Regexp@Method+match].
116-
- <tt>#=~</tt>: see {Operator =~}[rdoc-ref:Regexp@Operator+-3D~].
116+
- <tt>#=~</tt>: see {Operator =~}[rdoc-ref:Regexp@Operator-].
117117

118118
The affected global variables are:
119119

@@ -561,9 +561,9 @@ Quantifier matching may be greedy, lazy, or possessive:
561561
More:
562562

563563
- About greedy and lazy matching, see
564-
{Choosing Minimal or Maximal Repetition}[https://doc.lagout.org/programmation/Regular%20Expressions/Regular%20Expressions%20Cookbook_%20Detailed%20Solutions%20in%20Eight%20Programming%20Languages%20%282nd%20ed.%29%20%5BGoyvaerts%20%26%20Levithan%202012-09-06%5D.pdf#tutorial-backtrack].
564+
{Choosing Minimal or Maximal Repetition}[https://www.oreilly.com/library/view/regular-expressions-cookbook/9780596802837/ch02s13.html].
565565
- About possessive matching, see
566-
{Eliminate Needless Backtracking}[https://doc.lagout.org/programmation/Regular%20Expressions/Regular%20Expressions%20Cookbook_%20Detailed%20Solutions%20in%20Eight%20Programming%20Languages%20%282nd%20ed.%29%20%5BGoyvaerts%20%26%20Levithan%202012-09-06%5D.pdf#tutorial-backtrack].
566+
{Eliminate Needless Backtracking}[https://www.oreilly.com/library/view/regular-expressions-cookbook/9780596802837/ch02s14.html].
567567

568568
=== Groups and Captures
569569

@@ -764,7 +764,7 @@ The pattern:
764764
9. Matches the fourth character in the string, <tt>')'</tt>.
765765
10. Matches the end of the string.
766766

767-
See {Subexpression calls}[https://learnbyexample.github.io/Ruby_Regexp/groupings-and-backreferences.html?highlight=subexpression#subexpression-calls].
767+
See {Subexpression calls}[https://learnbyexample.github.io/Ruby_Regexp/groupings-and-backreferences.html#subexpression-calls].
768768

769769
==== Conditionals
770770

0 commit comments

Comments
 (0)