Thread $rofl =~ /hallo{2,}/i (4 answers)
Opened by Gast at 2007-07-18 15:49

Gast Gast
 2007-07-18 15:49
#78597 #78597
hallo kann mir bitte mal einer sagen warum das nicht geht?

$rofl = "hallo und so! hallo";

if ($rofl =~ /hallo{2,}/i) {
print "hallo";
}

sobald er 2x oder mehr als 2x hallo findet soll er was ausgeben ;)

View full thread $rofl =~ /hallo{2,}/i