View Single Post
Old 10-20-2007, 04:07 PM   #6 (permalink)
sketchMedia
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

use preg_replace() instead of preg_match()
example:
PHP Code:
<?php
$string 
'cheesedwawo24mlkdj;ao8';
echo 
preg_replace("/^cheese/",""$string);
?>
will return "dwawo24mlkdj;ao8"

hope that helps :)
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
sketchMedia is offline  
Reply With Quote