I have a string like
\"xdtwkeltjwlkejt7wthwk89lk\"
how can I get the index of the first digit in the string?
I'm sure there are multiple solutions, but using regular expressions you can do this:
>>> import re >>> match = re.search("\d", "xdtwkeltjwlkejt7wthwk89lk") >>> match.start(0) 15