In perlop steht die Sache mit dem leeren Pattern auch beschrieben:
Quote If the PATTERN evaluates to the empty string, the last success-
fully matched regular expression is used instead. In this case,
only the "g" and "c" flags on the empty pattern is honoured -
the other flags are taken from the original pattern. If no
match has previously succeeded, this will (silently) act
instead as a genuine empty pattern (which will always match).
Das hat mich schon einige Male beim Obfuskieren von Signaturen gestoert, denn ein echtes leeres Pattern koennte man da gut gebrauchen.
[quote=pq,08.02.2007, 09:41]
perlre, "Repeated patterns matching zero-length substring"
aber verstehen muss man das nicht =)[/quote]
Dies hingegen bezieht sich nicht auf leere Patterns, sondern auf Patterns, die auf leere Strings matchen.\n\n
<!--EDIT|betterworld|1170947404-->