[pmwiki-users] variable value manipulation

sti at pooq.com sti at pooq.com
Wed Oct 24 22:35:42 CDT 2007


TSgt Marshall Kelly wrote:
> Is there a way to remove a space from the value of a variable?
> Say a "trimleft" type command that would let me change "This Value" to
> "ThisValue"
> 
The cookbook recipe MarkupExprPlus (
http://www.pmwiki.org/wiki/Cookbook/MarkupExprPlus ) has a wikiword function
that will remove internal spaces, but it also capitalizes so that

  {(wikiword 'some words')}

becomes

  SomeWords

If that's not quite what you want, its easy to create new custom markup
expressions to do what you want.




More information about the pmwiki-users mailing list