How do i look for the following pattern using regular expression in python? for the two cases
Am looking for str2 after the "=" sign
- Case 1:
str1=str2
- Case 2:
str1 = str2
please note there can be a space or none between the either side of the "=" sign
Mine is like this, but only works for one of the cases!
m=re.search('(?<=str\s\=\s)\w+','str = str2')
returns str2
Help!
Gath