Re: regular expression

From: Date: Fri, 06 Oct 2000 21:22:25 +0000
Subject: Re: regular expression
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-18980@lists.php.net to get a copy of this message
Hi Matthew: While this isn't exactly what you want, maybe it'll work... Instead of converting [code] to <pre>, turn it into <code>. Then, when nl2lb() does it's magic, the line breaks in the code section will be needed. The downside is this doesn't take into account long lines that will now be wrapped by the browser that wouldn't be under <pre>. > line 1 > line 2 > [code] > line a > line b > [/code] > line 3 > > It should be converted into: > > line 1<br> > line 2<br> > <pre> > line a > line b > </pre> > line 3<br> -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y More than just answers. Solutions. (SM) http://www.analysisandsolutions.com/ 4015 7 Av #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409

« previous php.general (#18980) next »