The JS file is user dependent, so, maybe just that or maybe a few thousand lines. + ~10 more variable arrays. My workaround was to simply use str_replace twice, once to filter the first entry and the 2nd to filter the rest of the array entries. Here is what I have so far. <pre> $fp = @file('visitedPages.js'); for($i=0; $i < count($fp); $i++) { if(strstr($fp[$i], "visitedPages")) { while($fp[$i++] != strpos($fp[$i],");")) { $result = str_replace('"',' ',$fp[$i]); echo "<tr><td><a class=\"linkList\" href=\"#\">".str_replace(',',' ', $result)."</a></td></tr>"; } } } It does the job for now. But, if there is a better way to do this, I will be in your debt. Thanks for the followup. </pre>