NYCPHP Meetup

NYPHP.org

[nycphp-talk] Regex for P Elements

Daniel Convissor danielc at analysisandsolutions.com
Wed Jan 12 10:55:38 EST 2011


On Wed, Jan 12, 2011 at 10:00:49AM -0500, justin wrote:

>     /<p(\s+[^>]*)?>.*?<\/p>/s

Uh, what's the ? doing there after the .* in the middle?  The .* is all
that's needed.

--Dan

-- 
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
            data intensive web and database programming
                http://www.AnalysisAndSolutions.com/
 4015 7th Ave #4, Brooklyn NY 11232  v: 718-854-0335 f: 718-854-0409



More information about the talk mailing list