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 | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com _______________________________________________ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
