str asdf fdsa re search str group print

1
2
3
4
str = 'asdf' + '\n' + 'fdsa'
a = re.search('(.+)', str).group(1)
print a