hi, cheap bid, i know. i'm trying to put together a regular expression that takes pre formatted text like this: http://www.uac.pdx.edu/avalanche.php
and makes it web friendly (more fluid text).
following is the code i'm using. there's no regx because i lost the origionals off my computer.
$file = fopen("$GrabURL", "r");
$rf = fread($file, 20000);
$grab = eregi("$GrabStart(.*)$GrabEnd", $rf, $printing);
$printing[1] = str_replace("\n", "<br>\n", $printing[1]);
fclose($file);
echo $printing[1];
help would be reciprocated w/ backup dir access. 🙂