pikapython/test/python/re/search.py
2022-09-26 21:47:52 +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))