$processedParts['#'.
$pregQuotedTargetReplacementIdentifier.
$ruleName.'#'
] =
str_replace('\\', '\\\\',
$processedPart);
} } elseif (is_string($ruleValue)) { $processedParts['#'.
$pregQuotedTargetReplacementIdentifier.
$ruleName.'#'
] =
str_replace('\\', '\\\\',
$ruleValue);
} } // all of the values of processedParts would have been str_replace('\\', '\\\\', ..)'d to disable preg_replace backreferences
$inflectedTarget =
preg_replace(array_keys($processedParts),
array_values($processedParts),
$this->_target
);
if ($this->_throwTargetExceptionsOn
&& (preg_match('#(?='.
$pregQuotedTargetReplacementIdentifier.'[A-Za-z]{1})#',
$inflectedTarget) == true
)) { throw new Zend_Filter_Exception('A replacement identifier ' .
$this->_targetReplacementIdentifier . ' was found inside the inflected target, perhaps a rule was not satisfied with a target source? Unsatisfied inflected target: ' .
$inflectedTarget);
} return $inflectedTarget;
} /**
* Normalize spec string
*
* @param string $spec
* @return string
*/