Sorry people for not replying over the list...
On 27-11-10 20:08, Daniel P. Brown wrote:
> On Sat, Nov 27, 2010 at 14:05, Daniel P. Brown
> <[email protected]> wrote:
> > On Sat, Nov 27, 2010 at 13:55, Asmann, Roland
> <[email protected]> wrote:
> >>
> >> $s = preg_replace("/\[i\]((\s|.)+?)\[\/i\]/", "<i>\\1</i>", $s);
> >
> > This is exactly what I meant when I erroneously said, "library."
>
> Without seeing the rest of your code, try adjusting this
> particular preg_replace() line as follows:
>
> $s = preg_replace("/\[i\](.*)\[\/i\]/Us","<i>$1</i>",$s);
That seems to have done the trick! Thank you!
--
Roland Asmann
Senior Software Engineer
adesso Austria GmbH
Floridotower 26. Stock T +43 1 2198790-27
Floridsdorfer Hauptstr. 1 F +43 1 2198790-927
A-1210 Wien M +43 664 88657566
E [email protected]
W www.adesso.at
-------------------------------------------------------------
>>> business. people. technology. <<<
-------------------------------------------------------------
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php