What does the search method of re module do?

Category: PythonWhat does the search method of re module do?
Editor">Editor Staff asked 2 years ago

What does the search method of re module do?

a) No such method exists

b) It matches the pattern at any position of the string.

c) It matches a pattern at the start of the string.

d) It matches the pattern at end of the string.

 

1 Answers
Editor">Editor Staff answered 2 years ago

b) It matches the pattern at any position of the string.