Here's a small snippet that will replace spaces within quotes using regex's. Just put your data into tString and the new data is put into tResult.

repeat while matchText(tString, "([" & quote & "][^" & quote & "]+[" & quote & "])", tMatch)
   put replaceText(tMatch, " ", "") into tReplacement
   put replaceText(tString, tMatch, tReplacement) into tResult
   put replaceText(tString, tMatch, "") into tString
end repeat

Hope this is of use, JB.

JC

+-------------------------------------------------------------------------------------------------+
| There are 10 types of people in this world - those who understand binary and those who don't |
+-------------------------------------------------------------------------------------------------+


_______________________________________________
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