Re: Space in regex

From: Date: Tue, 21 Nov 2006 17:26:55 +0000
Subject: Re: Space in regex
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-244972@lists.php.net to get a copy of this message
On 21-Nov-2006, at 04:25, Ford, Mike wrote:
So the syntactically-correct simple version of this is '/[A_Z0-9\'.&_-]/i'.
Seems to ME that '/[:alnum:\'.&_-]/i' is more readable, and '/[\w\'.&-]/i' is just all around better And there's an error in what you posted anyway, A-Z, not A_Z However, I think Paul's post does exactly what the OP wanted: On 16-Nov-2006, at 15:26, Paul Novitski wrote:
/\[([^\]|]+)\|([^\]]+)\]/
-- Do you believe that there's someone up above, and does he have a timetable directing acts of love?

« previous php.general (#244972) next »