[PHP] Re: Replacing text with criteria

2006-06-15 Thread Rafael
Try with preg_replace('/\d(?!(?>\d*)\))/X', '*', $phone) wich would be a bit more efficient than preg_replace('/\d(?!\d*\))/X', '*', $phone) Jeff Lewis wrote: I have been working on a script to parse a CSV file and in the process I clean out a lot of the garbage not needed but I am a

[PHP] Re: Replacing text with criteria

2006-06-15 Thread Adam Zey
Jeff Lewis wrote: I have been working on a script to parse a CSV file and in the process I clean out a lot of the garbage not needed but I am a bit stumped on one aspect of this file. It's a list of over 3000 contacts and I'm trying to mask a lot of the information with *. So as I loop through