...

get filename

ynotlim
09-01-2010, 07:53 PM
how can i get the filename from this string?

string1 = "attachement; filename=test1234.mov"

filename = string1.parse(.......)

result:
filename = test1234.mov

Kakao
09-02-2010, 11:14 AM
if the equal sign will always be present then you split the string at it and get the second part:


string1 = "attachement; filename=test1234.mov"
filename = string1.split('=')[1]



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum