summaryrefslogtreecommitdiff
path: root/progs/a897.py
blob: 22107cf70bd24cc5c64d9bb4fd8a2f29a7fb966b (plain)
1
2
3
4
5
6
import re
def search_literal(pattern,text):
 match = re.search(pattern, text)
 s = match.start()
 e = match.end()
 return (s, e)