pikapython/examples/re/search.py
2022-08-29 16:29:03 +08:00

4 lines
111 B
Python

import re
print(re.search('www', 'www.runoob.com').span(0))
print(re.search('com', 'www.runoob.com').span(0))