regEx to remove spaces ?

jbv jbv.silences at club-internet.fr
Fri May 19 16:10:37 EDT 2006


Hi,

thanks for the response, but I don't think it would work...

let's go back to my example :
    my " beautiful " laundrette

if you replace tOpenSpace first, then you get :
    my "beautiful "laundrette

and then if you replace tCloseSpace, you get
    my"beautiful"laundrette

Thanks anyway,
JB

>
>
> I'm curious what mandates regEx?
>
> if the means is not an issue in reaching the goal ,  doesn't
> "replace" work for you?
>
> This is obvious, but for the record:
>
> function wipeQuotedSpaces tText
>         put (quote & " ") into tOpenSpace
>         put ( " " & quote) into tCloseSpace
>         replace tOpenSpace with quote in tText
>         replace tCloseSpace with quote in tText
>         return tText
> end wipeQuotedSpaces
>
> >
> > Thanks,
> > JB




More information about the use-livecode mailing list