![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.php archiveRe: preg_split
From: Andrew @ Rockface <@>
Date: Mon Oct 03 2005 - 12:48:52 CEST
www.douglassdavis.com wrote:
If you just want to replace multiple blanks between words try:
> So, my idea was to split it on the spaces, then implode it with one
Replace * with +
> I would think that the regular expression would match multiple spaces,
$array = preg_split("/\s+/",$string);
-- Andrew @ Rockface np: (Winamp is not active ;-) www.rockface-records.co.ukReceived on Tue Oct 18 02:30:46 2005 |