Re: RegExp Help: [:cntrl:] not working

From: Date: Fri, 12 Jul 2002 04:08:36 +0000
Subject: Re: RegExp Help: [:cntrl:] not working
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-107310@lists.php.net to get a copy of this message
Yes! That was it! Thank you so much. I actually thought preg and ereg were interchangeable, so, I'm glad you pointed out the difference for reg expressions. Can you tell me what the open and closing slashes / are for inside the quotes? Is it equivalent to [ and ] for ereg? Monty > 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

« previous php.general (#107310) next »