Re: [PHP] preg_replace_callback and brackets

2003-03-30 Thread Marek Kilimajer
Maybe you should use /\b/ word boundary instead of all the or's Joshua Moore-Oliva wrote: I'm kind of confused right now... when I call preg_replace_callback with a regular expression with brackets, sometimes I get an array back with multiple elements like array(3) { [0]=> string(19)

[PHP] preg_replace_callback and brackets

2003-03-29 Thread Joshua Moore-Oliva
I'm kind of confused right now... when I call preg_replace_callback with a regular expression with brackets, sometimes I get an array back with multiple elements like array(3) { [0]=> string(19) "http://www.aol.com " [1]=> string(0) "" [2]=> string(19) "http://www.aol.com " } and I