Item8491: regex manipulation of macro values
Priority: Enhancement
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Engine
Component: Macros
Branches:
"Wouldn't it be nice if" it were possible to refer to the value of a macro within a page, but perform some regex substitution on that value.
For instance, if I have a set of topics whose names have some structure, I might wish to refer to part of the topic name within the text of the topic.
Something along the lines of %REGEX{var="TOPIC" subst="s/^Prefix//"}% would be lovely (if you see what I mean).
As far as I can tell, the only practical way of achieving this at the moment is via the %CALC% macro, which is rather a heavyweight and displeasing-to-look-at solution.
If there is a cleaner solution to this, I'm going to be very embarrassed
If there isn't, I'll look into implementing it.
--
PatrickGosling - 10 Feb 2010
Try
FilterPlugin
--
MichaelDaum - 10 Feb 2010