Mailinglisten-Archive | 
Hi,
On Mon, Mar 01, 2004 at 04:02:08PM +0100, Stefan Neuser wrote:
> > So machs ich:
> > $text = $_POST['text'];
> > $text = preg_replace("(\[b\](.+?)\[/b\])is",'<b>$1</b>',$text);
> > $text = preg_replace("(\[u\](.+?)\[/u\])is",'<u>$1</u>',$text);
> > ...
> 
> GÖTTLICH !!! DANKE !!!
> 
> wo für steht das 'is' ??? Für caseInsensitiv also Groß- und
> Kleinschreibung nicht beachten ?
i = case insensitive
s = ein . im Pattern matcht auch mit newlines
http://de.php.net/manual/de/pcre.pattern.modifiers.php
-- 
Gruss Jens
    php::bar PHP Wiki - Listenarchive