Howzit,

I needed to do that and was about to (once again) reinvent the wheel, but decided to use the Rev search engine instead, and came across this handy regular expression function from Ken Ray, posted circa 2006. Works great! Thank you, Mr. Ray.

Sadhu

function trimWS pText
-- Remove all leading and trailing whitespace characters.
-- I.E., space, tab, carriage return, line feed, form feed.

 return replaceText(pText,"(^\s+)|(\s+$)",empty)

end trimWS



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

Reply via email to