2 ms·
"Just like above example the regular expression ar[.] means: an lowercase character a, followed by letter r, followed by any character." A period inside a char
by tyingq 9y ago
"Just like above example the regular expression ar[.] means: an lowercase character a, followed by letter r, followed by any character."
A period inside a character class is just a period. So that's only going to match "ar."
- ggus 9y agothe example is even worse: the string should match three times, not two. (it misses the a, followed by r, followed by space)