On 10/25/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> 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.
>

Using the same recipe you could also use regular expressions, having:

{(reg_replace '/\s/' '' ' Some Spaces   here ... ')}

rendering as:

SomeSpaceshere...

-- 
Dominique

_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to