Am 19.03.2013 15:57, schrieb Christopher Arndt:
On 19.03.2013 15:18, Andreas Röhler wrote:
[^\2] verstehe ich als Ausdruck "finde alle Zeichen, die nicht von
Klammer 2 gefunden wurden"

Vielleicht hilft folgende in der Doku beschrieben Syntax dir weiter?

(?(id/name)yes-pattern|no-pattern)

"Will try to match with yes-pattern if the group with given id or name
exists, and with no-pattern if it doesn’t. no-pattern is optional and
can be omitted. For example, (<)?(\w+@\w+(?:\.\w+)+)(?(1)>) is a poor
email matching pattern, which will match with '<u...@host.com>' as well
as 'u...@host.com', but not with '<u...@host.com'."


Vielleicht aber auch nicht. Ich verstehe deine Problemstellung nämlich
auch noch nicht wirklich.


Chris



Das ist interessant, danke.

Fürs Problem taugt es noch nicht, da die Form nur nach der Existenz das 
Ausdrucks fragt,
während ich dessen Inhalt brauche, bzw. einen Ausdruck für die Negation des 
Inhalts.

Andreas



_______________________________________________
python-de maillist  -  python...@python.org
http://mail.python.org/mailman/listinfo/python-de


_______________________________________________
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode

Reply via email to