Learn Programming tutorials and fixes to real problems while programming. Current focus is on Perl, Python, Php, Javascript, Nodejs.
#python script to capture regex matched groups into variables import re suffix = 'en' word = 'children' #print(word,suffix) m = re.search(r'(.*)'+suffix + '$', word) print(m.group(1))
it is useful!
it is useful!
ReplyDelete