4 ms·
...and the divide is effectively implemented by "multiplication", i.e. repeating the same match group (via backreference). It's one of those things that looks i
by userbinator 2y ago
...and the divide is effectively implemented by "multiplication", i.e. repeating the same match group (via backreference). It's one of those things that looks impossible at first, but you instantly turn to "of course that's how it works!" once you understand. That said, I still think this article is on the verbose side.
Also, strictly speaking, it's not a "regular expression" but a "regex", as backreferences make the language more powerful than regular.
https://en.wikipedia.org/wiki/Regular_expression#Patterns_for_non-regular_languages https://en.wikipedia.org/wiki/Regular_expression#Patterns_fo...
- Suppafly 2y ago>Also, strictly speaking, it's not a "regular expression" but a "regex" And regex is short for regular expression, so you've essentially said nothing.
- shagie 2y agohttps://web.archive.org/web/20100112232513/http://dev.perl.org/perl6/doc/design/apo/A05.html https://web.archive.org/web/20100112232513/http://dev.perl.o... AUTHOR Larry Wall <larry@wall.org> Maintainer: Larry Wall <larry@wall.org> Date: 4 Jun 2002 Last Modified: 18 May 2006 Number: 5 Version: 7 This is the Apocalypse on Pattern Matching, generally having to do with what we call "regular expressions", which are only marginally related to real regular expressions. Nevertheless, the term has grown with the capabilities of our pattern matching engines, so I'm not going to try to fight linguistic necessity here. I will, however, generally call them "regexes" (or "regexen", when I'm in an Anglo-Saxon mood).