On 8/9/05 8:17 PM, "Sivakatirswami" <[EMAIL PROTECTED]> wrote:

> I'm missing something very simple here,
> 
> Goal: delete empty lines beginning and end of text chunk

Try this:

function trim pWhat
  local tRetVal
  get matchText(pWhat, "(?s)^\s*(.*?)\s*$", tRetVal)
  return tRetVal
end trim


Trims all forms of whitespace (CRs, spaces, tabs, etc.) from the beginning
and end of a text chunk.

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]


_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to