Hallo Jan,
Für jedes Glossarwort das in einem Link drinne steht soll er
mir alles so lassen nur das Glossarwort in ein &$word&
ändern. Also einfach ein und & davor und danach hinschreiben.
Klappt aber leider nicht.
Na, das ist kein Wunder. Schau dir doch bitte nochmal die Doku
zu http://php.net/preg_replace an. Die sagt zum zu
ersetzenden Teil folgendes:
Replacement may contain references of the form \n or (since
PHP 4.0.4) $n, with the latter form being the preferred one.
Every such reference will be replaced by the text captured by
the n'th parenthesized pattern. n can be from 0 to 99, and
\0 or $0 refers to the text matched by the whole pattern.
Opening parentheses are counted from left to right (starting
from 1) to obtain the number of the capturing subpattern.
When working with a replacement pattern where a
backreference is immediately followed by another number
(i.e.: placing a literal number immediately after a matched
pattern), you cannot use the familiar \1 notation for your
backreference. \11, for example, would confuse
preg_replace() since it does not know whether you want the
\1 backreference followed by a literal 1, or the \11
backreference followed by nothing. In this case the solution
is to use ${1}1. This creates an isolated $1 backreference,
leaving the 1 as a literal.
RegEx-Pattern sind im zu ersetzenden Teil also fehl am Platze.
Dort kannst du nur auf die Backticks aus dem vorher
angewendeten RegEx verweisen, der Rest muss ein ganz
gewoehnlicher String sein.
Gruesse,
CK
http://cforum.teamone.de/
http://wishlist.tetekum.de/
If God had meant for us to be in the Army, we would have been born with green, baggy skin.