Skip to content

Commit d1d4911

Browse files
Curtis Auteryziishaned
authored andcommitted
Periods in groups mean periods, not any character (ziishaned#9)
1 parent b401be1 commit d1d4911

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ expression `[Tt]he` means: an uppercase `T` or lowercase `t`, followed by the le
110110
"[Tt]he" => <a href="#learn-regex"><strong>The</strong></a> car parked in <a href="#learn-regex"><strong>the</strong></a> garage.
111111
</pre>
112112

113-
Just like above example the regular expression `ar[.]` means: an lowercase character `a`, followed by letter `r`, followed by any character.
113+
A period inside a character set, however, means a literal period. The regular expression `ar[.]` means: a lowercase character `a`, followed by letter `r`, followed by a period.
114114

115115
<pre>
116-
"ar[.]" => The car p<a href="#learn-regex"><strong>ark</strong></a>ed in the g<a href="#learn-regex"><strong>ara</strong></a>ge.
116+
"ar[.]" => A garage is a good place to park a c<a href="#learn-regex"><strong>ar.</strong></a>
117117
</pre>
118118

119119
### 2.2.1 Negated character set
@@ -433,4 +433,4 @@ line. And beacause of `m` flag now regular expression engine matches pattern at
433433

434434
## License
435435

436-
MIT © [Zeeshan Ahmed](mailto:[email protected])
436+
MIT © [Zeeshan Ahmed](mailto:[email protected])

0 commit comments

Comments
 (0)