Call too all one-liners !
viktoras didziulis
viktoras at ekoinf.net
Sat Jun 28 16:44:30 EDT 2008
or a little obfuscated with regexps but without any conditionals:
1. get matchText(myFile,"([^.jpg])$", a); put
replaceText(myFile,"([^.jpg])$",a & ".jpg") into myFile
2. replaceText(myFile,".jpg","")
best wishes :-)
Viktoras
Francis Nugent Dixon wrote:
> Hi from Paris,
>
> You guys have always spoofed me with what you can do with
> Transcript. Some of your coding makes me look silly.
> I obviously don't "grab" Transcript like you do !
>
> So I have a little test for you. I want to :
>
> 1 -add
> 2 -remove
>
> a ".jpg" suffix from a file name that I'm holding in a variable.
>
> Have you got a couple of one-liners to do that ?
>
> With Thanks
>
> -Francis
>
> _______________________________________________
> 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