[TYPO3-dev] TYPO3 4.2: Tables in content elements break backend layout
Martin Kutschker
Martin.Kutschker at n0spam-blackbox.net
Mon Mar 17 11:47:00 CET 2008
Steffen Kamper schrieb:
> Can you explain what this expression does?
> $content = preg_replace('/(<[^ >]* )([^ >]*)([^>]*>)(<\/[^>]*>)/',
> '$1$2$3$2$4', $content);
Match a tag without content and use the first attribute as content:
1. match the the tag together with the opening < and a space (!) after the
tag name
2. match the first attribute (unless it contains a space!?!)
3. match the rest of the opening tag
4. match the closing tag
Probably meant for LINK tags.
Masi
More information about the TYPO3-dev
mailing list