Thread
:
get filename
View Single Post
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
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]
__________________
Web Programming Tutorial
Python Web Programming Tutorial
Programming Tutorial for absolute beginners
Kakao
View Public Profile
Find More Posts by Kakao