Re: [PHP] Match for titles using pregexp

2007-12-27 Thread Robert Cummings
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

Re: [PHP] Match for titles using pregexp

2007-12-27 Thread OOzy Pal
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

Re: [PHP] Match for titles using pregexp

2007-12-27 Thread Robert Cummings
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

[PHP] Match for titles using pregexp

2007-12-27 Thread OOzy Pal
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