Re: RegExp Help: [:cntrl:] not working
| From: | Analysis & Solutions | Date: | Fri, 12 Jul 2002 03:43:11 +0000 |
| Subject: | Re: RegExp Help: [:cntrl:] not working | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-107309@lists.php.net to get a copy of this message | ||
On Thu, Jul 11, 2002 at 11:24:34PM -0400, Monty wrote:
> $contentpage = preg_split("[[:space:]]*page_break[[:space:]]*", $content);
DOH! It's preg!!! [[:space:]] is for ereg. Use \s. I don't know why I
didn't notice sooner. Do this:
'/\s*page_break\s*/'
--Dan
--
PHP classes that make web design easier
SQL Solution | Layout Solution | Form Solution
sqlsolution.info | layoutsolution.info | formsolution.info
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
4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409