Trimming strings 2004-04-02 - By kim aldis
Back
var a = s.split( /\./ ); var root = a[0];
S would be the filename.
> -- --Original Message-- -- > From: owner-xsi@(protected) > [mailto:owner-xsi@(protected)] On Behalf Of Bernard Lebel > Sent: 02 April 2004 16:46 > To: XSI@(protected) > Subject: [Script] Trimming strings > > Hello, > > Is there are way to trim an string? For instance, I'm getting > a file name. I would like to compare this name with other > file names, but without the padding and extension (basically > to check if there are sequences of different name in the same > folder). The problem is that when you get the file name of a > file through FileSystemObject, you get the padding and > extensions as well. > > Thanks for any info > Bernard > --- > Unsubscribe? Mail Majordomo@(protected) with the following > text in body: > unsubscribe xsi > > >
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|