From: Erez Ben shoham Date: 2012-10-15T05:00:42+09:00 Subject: Re: best way to extract data from a string? Jan E. wrote in post #1079799: > Hi, > > the best way would be to use a proper data format. But I assume the > strings are given and cannot be changed? sorry for my English the purpose of this is there are photoshop .psd files localy on a mac. and we need to upload small jpgs versions of them to a web app with the original width and height data in the fastest hassle free way. the upload process changes the size of the images. so we created a photoshop script that automatically creates the small version jpgs and inserts the original width height data to the name of the file. then the user drag and drop the small jpgs to the browser and then we upload the images and update the data accordingly. -- Posted via http://www.ruby-forum.com/.