eregi_replace help needed

From: Date: Thu, 29 Jan 2004 15:52:46 +0000
Subject: eregi_replace help needed
Groups: php.general 
Request: Send a blank email to php-general+get-176218@lists.php.net to get a copy of this message
Hi, I want to locate patterns such as 12345678 1 23 45 67 89 1 2 34 567 890 and replace the pattern string with a new string. I tried $filter['message'] = eregi_replace("[0-9\s]{4,}",'<string replaced>', $filter['message']); but it does not work on all the above examples. Thanks for the assistance! Nico

« previous php.general (#176218) next »