Autor Zpráva
hahulka
Profil *
Prosim jenom pidi radu
KOD:

$kod='</tr>
<tr>
<td valign="bottom"><img src="/img/sre/navright.gif" border="0" alt="">&nbsp;<a href="index.cfm" class="primtop2">zurück</a></td>
</tr>
</table>
</td></tr>

<tr>
<td align="right" valign="top" width="50%">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
';

preg_match("'<a href="/de/SRE/archite/standorte/index.cfm&sheet=1" class="pathhigh">(.*?)</a>'", $kod, $kategorie);
$kat=$kategorie[1];


mi hazi chybu v preg_matchi kvuli uvozovkam, prosim, co s nemi?

Dekuji
keeehi
Profil
preg_match("'<a href=\"/de/SRE/archite/standorte/index.cfm&sheet=1\" class=\"pathhigh\">(.*?)</a>'", $kod, $kategorie);


asi?
I am
Profil *
Musíš je escapovat lomítkem! I další takové znaky například tečku apod.. hledej které přesně to jsou z hlavy nevím.
I am
Profil *
preg_match("#<a href=\"/de/SRE/archite/standorte/index\.cfm&sheet=1\" class=\"pathhigh\">(.*?)</a>#", $kod, $kategorie, PREG_SET_ORDER);
Majkl578
Profil
I am
a co escapovani / a \ ?
I am
Profil *
/ se escapovat nemusí a \ tam nikde pokud vím nemá
I am
Profil *
Escapovat se musí tyto znaky:
\, ^, $, ., [, ], |, (, ), ?, *, +, {, }.

Vaše odpověď

Mohlo by se hodit


Prosím používejte diakritiku a interpunkci.

Ochrana proti spamu. Napište prosím číslo dvě-sta čtyřicet-sedm:

0