I am looking to get a listing of what ereg_replace replaced. I know I can get this listing in Perl.
Here is my code snippet:
$ptrn = "[([a-zA-Z0-9 ]*)]";
$repl2 = "<a href=$site_url_base/node.php3?name=\1&type=node>\1</a>";
echo(ereg_replace($ptrn,$repl,$n_body));
What I want is a listing of the \1 words when the RegEx is done for further processing.
Chris