On Thu, 2007-12-27 at 13:53 +0300, OOzy Pal wrote:
> On Dec 27, 2007 12:40 PM, Robert Cummings <[EMAIL PROTECTED]> wrote:
> > On Thu, 2007-12-27 at 11:27 +0300, OOzy Pal wrote:
> > > more words/chars[2]more
> > > words/chars
> > >
> > > How can I match for the title. In this case the word Hello us
On Dec 27, 2007 12:40 PM, Robert Cummings <[EMAIL PROTECTED]> wrote:
> On Thu, 2007-12-27 at 11:27 +0300, OOzy Pal wrote:
> > more words/chars[2]more
> > words/chars
> >
> > How can I match for the title. In this case the word Hello using regexp?
>
>
> $text = 'more words/chars[ title="Hello">2]m
On Thu, 2007-12-27 at 11:27 +0300, OOzy Pal wrote:
> more words/chars[2]more
> words/chars
>
> How can I match for the title. In this case the word Hello using regexp?
2]more words/chars';
$title = null;
if( preg_match( '/title="([^"]*)"/Umi', $text, $bits ) )
{
$title = $bits[1];
}
echo
more words/chars[2]more words/chars
How can I match for the title. In this case the word Hello using regexp?
--
OOzy
Ubuntu-Gutsy (7.10)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
4 matches
Mail list logo