Hallo Martin.
bitte um Hilfe: Wie suche ich mit preg_match nach einer öffnenden spitzen Klammer?
$content = "<td>";
if(preg_match("/</",$content,$subpatterns)){
echo $subpatterns[0];
}wird gefunden.
if(preg_match("/<td/",$content,$subpatterns)){
echo $subpatterns[0];
}wird nicht gefunden.
Doch.
Aber
if(preg_match("/<td/",$content,$subpatterns)){
echo $subpatterns[0];
}wird auch nicht gefunden.
Doch.
Einen schönen Montag noch.
Gruß, Mathias
--
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
„It is required that HTML be a common language between all platforms. This implies no device-specific markup, or anything which requires control over fonts or colors, for example. This is in keeping with the SGML ideal.“
[HTML Design Constraints: Logical Markup]
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
„It is required that HTML be a common language between all platforms. This implies no device-specific markup, or anything which requires control over fonts or colors, for example. This is in keeping with the SGML ideal.“
[HTML Design Constraints: Logical Markup]