Internet communication through a Firewall

J. Landman Gay jacque at hyperactivesw.com
Tue Sep 28 17:20:01 EDT 2004


On 9/28/04 2:55 PM, Ken Ray wrote:

> function trim what
>   local tText
>   get matchText(what,"(?s)\s*(\S.*\S)\s*",tText)
>   return tText
> end trim

Being somewhat grep-challenged, could you explain more what the above 
does? Is there a difference between that and this:

   put word 1 to -1 of tText into tText

That's my standard way of removing leading and trailing white space. My 
way doesn't remove duplicate spaces between words, however.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com


More information about the metacard mailing list