Answers for "return substring from regex pythn"

1

extract text regex python

>>> import re

>>> re.findall(r'd{1,5}','gfgfdAAA1234ZZZuijjk')

>>> ['1234']
Posted by: Guest on March-25-2020
4

re python3

import re
>>> m = re.search('(?<=abc)def', 'abcdef')
>>> m.group(0)
'def'
Posted by: Guest on February-03-2020

Code answers related to "return substring from regex pythn"

Python Answers by Framework

Browse Popular Code Answers by Language