I want to cutoff everything but the first paragraph from an rte field for an excerpt:
20 = HTML
20.value.field = tx_myextention_field
20.value.parseFunc < lib.parseFunc_RTE
20.wrap = <p class="claim-long">|</p>
20.stdWrap.replacement {
10 {
search = /^(.*?\/p).*$/m
replace = \1>
useRegExp = 1
}
}
Why is this regex not working? Or is there a better solution?