pikapython/examples/re/search.py

4 lines
111 B
Python
Raw Normal View History

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