Hi,
$bla =~ m/[^Hallo|Ciao]/;
Ciao ist nicht verboten.
Verboten sind worte, die beginnen mit
hc Hi Ha Ho aC ai aa ao ....
ähm, nee. Die RegExp ist identisch mit
/[^aCHilo|]/
und reagiert damit auf jedes einzelne Zeichen, das nicht "a", "C", "H", "i", "l", "o" oder "|" ist.
Wie stellt man sowas am besten an? Bräuchte nur nen hinweis ;)
Studiere die Perl Doku bezüglich Reguläre Expressions.
Gleichfalls ;-)
Cheatah
--
X-Self-Code: sh:( fo:} ch:~ rl:° br:> n4:& ie:% mo:) va:) de:] zu:) fl:{ ss:) ls:~ js:|
X-Self-Code-Url: http://emmanuel.dammerer.at/selfcode.html
X-Will-Answer-Email: No
X-Please-Search-Archive-First: Absolutely Yes
X-Self-Code: sh:( fo:} ch:~ rl:° br:> n4:& ie:% mo:) va:) de:] zu:) fl:{ ss:) ls:~ js:|
X-Self-Code-Url: http://emmanuel.dammerer.at/selfcode.html
X-Will-Answer-Email: No
X-Please-Search-Archive-First: Absolutely Yes