You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: chapters/basics.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Regular expressions are typically formatted as `/<rules>/<flags>`. Often people
4
4
5
5
Let's start with the regex `/p/g`.
6
6
7
-
<Examplesource="p"flags="g">
7
+
<Exampleregex={/p/g}>
8
8
<String>pancake</String>
9
9
<String>pineapple</String>
10
10
<String>apple</String>
@@ -14,7 +14,7 @@ Let's start with the regex `/p/g`.
14
14
15
15
As we can see, `/p/g` matches all lowercase `p` characters. Note that regexes are case sensitive by default. If the regex has one or more "matches" within the input string, it is said to "match" the regex. Think of "the matches" as an array, and whether an input "matches" a regex as a boolean.
0 commit comments