Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#11 2020-08-07 10:40:00

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 3,934
Website

Re: [Solved] REGEX headache

Oleg’s method would work there too if you used txp:title twice. Something like:

<h1><txp:title trim="/@(.*?)/" /> <br> <txp:title trim="/(.*?)@|\s*\(\d+\)/" /></h1>

No idea which is better.


TXP Builders – finely-crafted code, design and txp

Offline

#12 2020-08-07 11:00:39

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,415
Website

Re: [Solved] REGEX headache

Thank you lot both ;)


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

Board footer

Powered by FluxBB