TYPO3 blocks rendering of pages with more than 13 content-elements when using the Typoscript:
brandReplacing {
stdWrap {
replacement {
10 {
search = ®(?=[<]*(?:<[^>]*>[^<]*)*$)
replace = <sup>®</sup>
useRegExp = 1
}
}
}
}
as the regex even needs 118 Steps for this short example (steps needed increases exponentially / like 83000 steps needed for two more attributes). All in all the regex works fine but is too "huge".
Does anybody have an idea how to reduce the steps (performance) needed to execute the regex and maybe also exclude ®
-Symbols already wrapped with <sup>
-tags? Or is there a better way to solve this problem TYPO3-sided?
The regex like above:
®(?=[<]*(?:<[^>]*>[^<]*)*$)
The html code:
<img title="Copyright replacement incorrect ®" src="/fileadmin/filexyz.png">
<h1>Copyright replacement correct: ®</h1>
Also correct replacement here: ®
Maybe NOT here: <sup>®</sup>