fix(learn): Use backticks around back slash character (#41254)

This commit is contained in:
Randell Dawson
2021-02-25 04:04:40 -07:00
committed by GitHub
parent 4917e59aaa
commit 33356e403a

View File

@ -12,7 +12,7 @@ Some patterns you search for will occur multiple times in a string. It is wastef
You can search for repeat substrings using <dfn>capture groups</dfn>. Parentheses, `(` and `)`, are used to find repeat substrings. You put the regex of the pattern that will repeat in between the parentheses.
To specify where that repeat string will appear, you use a backslash (<code>\\</code>) and then a number. This number starts at 1 and increases with each additional capture group you use. An example would be `\1` to match the first group.
To specify where that repeat string will appear, you use a backslash (`\`) and then a number. This number starts at 1 and increases with each additional capture group you use. An example would be `\1` to match the first group.
The example below matches any word that occurs twice separated by a space: