<filename>re_test/1.py<gh_stars>0
import re
p = re.compile(r'foreign key\((?P<word>\w+)\)')
m = p.search('foreign key(Id)')
print(m)
print(m.groups())
m.group('word')

<filename>re_test/1.py<gh_stars>0
import re
p = re.compile(r'foreign key\((?P<word>\w+)\)')
m = p.search('foreign key(Id)')
print(m)
print(m.groups())
m.group('word')
