Public Questions for tag [substring]

Ask Question

2 questions


0

Vote

4

Answers

23

View

I'm looking for a string.contains or string.indexof method in Python.I want to do:if not somestring.contains("blah"): continue

Jan 25

0

Vote

3

Answers

22

View

Usually, I would expect a String.contains() method, but there doesn't seem to be one.What is a reasonable way to check for this?

Dec 23