Hallo Community,
ich hab ein RegExp Thema, dass ich nicht schaffe zu lösen. Könnt ihr mir helfen?
Folgendes:
PHP-Code:
<li class="active first"><span class="active first">BisomarkTEC</span></li>
<li><a href="index.php/bisoplan-tec-super.html" title="Bisoplan TEC (Super)">BisoplanTEC (Super)</a></li>
In beiden <li>s kommt das Wort TEC vor. Das muß ich ersetzen, aber abhängig, ob das Wort active vorkommt oder nicht. Lösungsansatz für den 'activ'-Fall:
PHP-Code:
preg_replace('/(.*active.*)TEC(.*)/','$1<img src=\'tl_files/global/TECgrau.gif\' border=\'0\'>$3',$strContent);
Danke
Gruß
Michel