regEx to remove spaces ?

Mark Smith mark at maseurope.net
Wed May 17 10:26:12 EDT 2006


If you don't mind it not being regex, then

set the itemDelimiter to quote
repeat for each item i in myString
   put word 1 to -1 of i & quote after newString
end repeat
if char -1 of myString is not quote then delete char -1 of newString


should work.

Best,

Mark Smith

On 17 May 2006, at 10:45, jbv wrote:

> Hi list,
>
> Is it possible to use regEx to remove spaces before and
> after quotes, and, if yes, how ?
>
> Example :
>     my " beautiful " laundrette
> becomes
>     my "beautiful" laundrette
>
> Thanks,
> JB
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list