note 38005 rejected from function.preg-match-all by didou

From: Date: Thu, 04 Dec 2003 09:34:22 +0000
Subject: note 38005 rejected from function.preg-match-all by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-61384@lists.php.net to get a copy of this message
Note Submitter: chirag@indianic.com ---- Here is the problem i am facing I m trying to extract form tags from the html source Working example $form="<form name='test'><input type='text' name='name' validate='ValidateBlank' ValidMsg='Please Enter Your Name' php></form>"; preg_match_all( "!<form (.*?)</form>!", $form, $FormTag); foreach($FormTag[0] as $FromHtml) { //Loop for all the forms available in html file preg_match( "!<form (.*?)>!", $FromHtml, $CurrentForm); $CurrentFormTag=$CurrentForm[0]; echo $CurrentFormTag."<BR>"; } Above code works fine and gives me "<form name='test'>" However, same is not working if i press enter, after form tag like $form="<form name='test'> <input type='text' name='name' validate='ValidateBlank' ValidMsg='Please Enter Your Name' php> </form>"; Now with above modified string it is not working for me, Please note that i have pressed enter after form tag

« previous php.notes (#61384) next »