[Tutor] How to find a word in a string
Phil
phillor9 at gmail.com
Tue May 4 04:19:46 EDT 2021
On 4/5/21 5:51 pm, Peter Otten wrote:
> but there's also str.translate() to deal with multiple (character)
> replacements simultaneously:
Thank you Peter, I wasn't aware of the translate or maketrans functions.
The problem is, as you say, how would I differentiate between hyphenated
words and the negative symbol?
I'll do some research into these functions tomorrow.
--
Regards,
Phil
More information about the Tutor
mailing list