[pmwiki-users] MarkupExpressions

The Editor editor at fast.st
Sun May 27 09:54:54 CDT 2007


On 5/27/07, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> Scott Connard writes:
> > I've been doing some work with parameters to include files (an
> > excellent feature) and I'm wondering if you might consider adding a
> > markup expression for strpos() or some variant of it so that we can
> > see if a string occurs in a parameter string.
> >
> > My needs are simply to evaluate if a string can be found in the
> > source string and not specifically what position it starts in,
> > but you could implement it either way.
>
> Does it need to be a markup expression or a conditional markup?
>
>    (:if strpos <haystack> <needle>:)
>
>    {(strpos <haystack> <needle>)}


Perhaps a bit off topic, but I've been experimenting with a number of
custom markup expressions that can be set to return true or false and
then use them within conditionals. It allows for some interesting
possibilities...

Cheers,
Dan



More information about the pmwiki-users mailing list