Reply to Re: regex for PHP variable name

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация