Hallo,
Ich suche mit preg_match einen String in einer Variable der dort auch vorhanden ist. Allerdings gibt mit preg_match False zurück!
Kann jemand erkennen warum?
Danke
	
sorry! zeilemumbruch wird das Beispiel für den Test zerstören!
							
						
					Ich suche mit preg_match einen String in einer Variable der dort auch vorhanden ist. Allerdings gibt mit preg_match False zurück!
Kann jemand erkennen warum?
Danke
PHP-Code:
	
	
$strBody = 'TD ALIGN="center" VALIGN="middle">
            <A CLASS="button" HREF="http://s1.egal.com/index.php?sysm=file_transfer&sysf=center&action=download&file_id=825410&file_name=upload.zip&user_session=c58779nmtlmoclh5pos7o1adg6&option=free"><SPAN>      Free      </SPAN></A>
            </TD>
            <TD></TD>
            <TD ALIGN="center" VALIGN="middle">
            <A CLASS="button" HREF="http://s1.egal.com/index.php?sysm=file_transfer&sysf=center&action=download&file_id=825410&file_name=upload.zip&user_session=c58779nmtlmoclh5pos7o1adg6&option=premium"><SPAN> Premium </SPAN></A>
            </TD>';
$strFind = '<A CLASS="button" HREF="http://s1.egal.com/index.php?sysm=file_transfer&sysf=center&action=download&file_id=825410&file_name=upload.zip&user_session=c58779nmtlmoclh5pos7o1adg6&option=free">';
echo (preg_match('#'.$strFind.'#i',$strBody)) ? 'Ja' : 'Nein'; 
 
          

Kommentar