Re: problem with preg_replace

From: Date: Tue, 13 Jan 2004 21:41:29 +0000
Subject: Re: problem with preg_replace
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-174485@lists.php.net to get a copy of this message
> > $new_file = > preg_replace('/\b(?<!\[sample\]|\[)(\w+)(?!\[\/sample\]|\])\b/', > > ' [tag]$1[/tag] ', $new_file); > > Replace the \w+ by [a-bA-Z]+

« previous php.general (#174485) next »