Hello,
I am able to find the first instance of a character in a string:
s = 'abc]xy}[)'
s.index(']')
3
How may I find the first characters from the set { ‘)’ , ‘]’, ‘}’ }? To elaborate a little more, I search from the beginning of the string, and I encounter any of the three element ‘)’, ‘]’, ‘}’ and then I stop.
Thank you.
J