Siechfred: Regulärer Ausdrück: Zahl zwischen 0 und 100 finden

Beitrag lesen

Tag Christian.

$match1 = $text =~ /(?!ASP) ist toll/;
$match2 = $text =~ /(?<!ASP) ist toll/;

Ah, ich glaube, dass ich langsam dahintersteige. Zum Verständnis:

Variante 1: "Finde eine Position, an der nicht 'ASP' steht, aber ' ist toll'"
Variante 2: "Finde eine Position, an der ' ist toll' steht, aber nur dann, wenn davor nicht 'ASP' steht"

Ist das jetzt so richtig?

Siechfred

--
Everybody's going to the party have a real good time,
Dancing in the desert blowing up the sunshine.