Mailinglisten-Archive |
Hi, > $msg = preg_replace("(\@(.+?)\@)is",getUser("$1"),$msg); $msg = preg_replace("/(\@(.+?)\@)/ise","getUser(\"$1\")",$msg); 1. PCREs brauchen Delimiter, v.a. um die Modifier abzutrennen. 2. Um Funktionen aufzurufen, braucht man entweder den Modifier "e", oder man nimmt preg_replace_callback. Gesundheit Wagner -- Never ascribe to malice that which can be adequately explained by incompetence.
php::bar PHP Wiki - Listenarchive