I have a string that loks like "u'mystring'". i'm wondering if ther is a easy way to remove the u'' part of the string?
implor
0
Newbie Poster
Recommended Answers
Jump to Posts = "u'mystring'" # assuming it is always u' s2 = s.replace("u'", "'") print s2 # 'mystring'
Jump to Post
s = "You're sure that would work on this string?"
All 6 Replies
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
BearofNH
104
Posting Whiz
vegaseat
commented:
thanks
+7
woooee
814
Nearly a Posting Maven
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
ZZucker
342
Practically a Master Poster
jrcagle
77
Practically a Master Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.