Oct-22-2019, 02:19 PM
(Oct-22-2019, 01:43 PM)soothsayerpg Wrote: I've been in weeks trying to remove a double-quote (") from a word (as I want to count the word in a certain text or webpage and what not).
There would be words like:
“Stay with Me” and “I’m not the Only One”,
"Latch"
[ ... ]
I cannot remove those double-quotes. Tried .replace, .strip, even if I .split them up or turn them into a list. I can remove other special characters like punctuation, apostrophe, period, etc. etc.... but never the double-quotes.
Hi!
It's just a thought, but I think that maybe it's because you are using different types of double quotes, and probably eliminating just one type of them.
The double quotes in
“Stay with Me”
are, for instance, different from the double quotes in "Latch"
.All the best,
newbieAuggie2019
"That's been one of my mantras - focus and simplicity. Simple can be harder than complex: You have to work hard to get your thinking clean to make it simple. But it's worth it in the end because once you get there, you can move mountains."
Steve Jobs
"That's been one of my mantras - focus and simplicity. Simple can be harder than complex: You have to work hard to get your thinking clean to make it simple. But it's worth it in the end because once you get there, you can move mountains."
Steve Jobs