Re: Get value of tag

From: Date: Mon, 02 Jun 2003 15:53:49 +0000
Subject: Re: Get value of tag
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-20161@lists.php.net to get a copy of this message
maybe a regular expression does it for you? $str ="[code=vb]"; preg_match("/\[code=([a-z]+)\]/", $str, $reg); echo $reg[1]; i assumed that your value is only lower alpha and at least one char, can simlpy be modified. ciao SVEN. "Jeremy Whitlock" <jwhitlock@starprecision.com> schrieb im Newsbeitrag news:004501c3291c$42935200$e0c7c7c7@starprecision.com... > PHP-List, > I'm working on a module and I need to be able to get the > value of: > [code=vb] > > where the results would be "vb". Can someone help? Thanks, > > Jeremy Whitlock --- MCP/MCSA > IT Manager for Star Precision, Inc. > Phone: (970) 535-4795 > Metro: (303) 926-0559 > Fax: (970) 535-0780 > Metro Fax: (303) 926-0559 > http://www.starprecision.com > >

« previous php.windows (#20161) next »