Answers for "python get from string regex"

1

regex in python to obtain only the string in python

import re
print(" ".join(re.findall("[a-zA-Z]","your string")))
Posted by: Guest on February-26-2021
4

python regex

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

Code answers related to "python get from string regex"

Python Answers by Framework

Browse Popular Code Answers by Language