Thread: get filename
View Single Post
Old 09-02-2010, 11:14 AM   PM User | #2
Kakao
Regular Coder

 
Join Date: Mar 2006
Location: Brasília, Brazil
Posts: 153
Thanks: 0
Thanked 0 Times in 0 Posts
Kakao is on a distinguished road
if the equal sign will always be present then you split the string at it and get the second part:

Code:
string1 = "attachement; filename=test1234.mov"
filename = string1.split('=')[1]
Kakao is offline   Reply With Quote