View Single Post
Old 07-26-2008, 07:29 AM   #7 (permalink)
Enigmabomb
Banned
 
Enigmabomb's Avatar
 
Join Date: Feb 2007
Posts: 1,916
iTrader: 11 / 100%
Enigmabomb has a reputation beyond reputeEnigmabomb has a reputation beyond reputeEnigmabomb has a reputation beyond reputeEnigmabomb has a reputation beyond reputeEnigmabomb has a reputation beyond reputeEnigmabomb has a reputation beyond reputeEnigmabomb has a reputation beyond reputeEnigmabomb has a reputation beyond reputeEnigmabomb has a reputation beyond reputeEnigmabomb has a reputation beyond reputeEnigmabomb has a reputation beyond repute
Ok, that actually breaks if Rob starts the line. This works, but again, dirty.

$g = preg_replace("/^(.*?),?Rob,?(.*?)\n/","",$g);

Which in english reads:

If you have a start of the line, Followed by anything, then an optional comma (So in case we're first column) Then our search term Rob Followed by an optional comma (In case were last row) followed by anything until the line break, replace it with nothing.

Sorry about all the posts, but I cant edit after 10 mins. Please let me know how this works for you, I've spent some time on it, and the payoff will be hearing your results.
__________________
SEO Keyword Tracking For Professionals (Or just a slob with clients)
How To Write Link Bait
Stop moving in slow motion:Full Speed SEO
Enigmabomb is offline