News for hackers. Stuff that matters.
Re:Detailed guide on Regex by tyingq on Tuesday July 25, 2017 @09:42AM (#14847627)
"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."

Re:Detailed guide on Regex by ggus on Tuesday July 25, 2017 @10:39AM (#14848035)
the example is even worse: the string should match three times, not two. (it misses the a, followed by r, followed by space)