wahsaga: Regex: ersetze ;) falls davor nicht abc steht

Beitrag lesen

hi,

Also hab ich probiert, eine "negative lookahead assertion einzusetzen:

die ist hier aber fehl am platze - du brauchst eine lookbehind assertion:

Finde (?!abc);) Ersetze durch ###

Ergebnis:
abc### ### def###

finde: (?<!abc);)
ersetze durch: ###

ergebnis: abc;) ### def###

In der Hilfe des Tools (WildEdit) heißt es:
"(?!abc)" matches zero characters only if they are not followed by the expression "abc".

was heißt denn "not _followed_" - ist es das, was du bezwecken wolltest?

gruß,
wahsaga

--
/voodoo.css:
#GeorgeWBush { position:absolute; bottom:-6ft; }