regEx to remove spaces ?
jbv.silences at club-internet.fr
Fri May 19 16:10:37 EDT 2006
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
> 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