On 11/28/06, Anthony Papillion <[EMAIL PROTECTED]> wrote:

 Hello Everyone,

I am using the following regex to retrieve text between two <div> tags.

$trans_text = preg_match(/<div id=result_box dir=ltr>(.+?)</div>/);


Don't you need to surround the pattern in quotes?  I always have.
-c
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to