2013-07-29

I just did the funny regex crosswords at http://regexcrossword.com/ - and found out I don't understand what quantifying groups means, e.g. (.)+ or (.)*

Let me try at http://ole.michelsen.dk/tools/regex.html , it offers the JavaScript and the PHP regex engine:

The string to match against is "Trololo!" (without quotation marks).
(If switching on "Global match" changed something, it is added as primed version, that is JS', as it didn't change anything in PHP mode.)

Is there any normative answer what the semantics of this is?

Show more