|
Posted by Tom on 05/18/07 17:50
"Sebosac" <sebosac@wanadoo.fr> wrote in message
news:1179425971_309@qrz.fr...
> hi, novice on regex, i'm searching for THE master Regex will retieve php
> variable name like "$varname" in my script.
>
>
> $tagparse = fil_gzet_contents('myscript.php');
> preg_match_all("(.\$)", $tagparse, $out );
>
>
> thank for your help
What at you trying to find in "myscript.php", any variable names? Maybe
something like this...
preg_match_all("/\$\S+/", $tagparse, $out );
Should do a pattern match for "$" and any not whitespace characters after
the dollar sign.
Tom
--
Newsguy.com - Express Accounts - 30 GB $9.95 / month
[Back to original message]
|